aboutsummaryrefslogtreecommitdiff
path: root/src/scrub-widget.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-07-29 13:19:00 +0100
committerConor Curran <conor.curran@canonical.com>2010-07-29 13:19:00 +0100
commita100dc24a2eb10a1f63be5391b97700032a16111 (patch)
treeca895c55f789bfd5edfb2f3ed6ee397aa3313c3c /src/scrub-widget.c
parent06e8e90161cec524e5a875aa709b96d5489ae91a (diff)
downloadayatana-indicator-sound-a100dc24a2eb10a1f63be5391b97700032a16111.tar.gz
ayatana-indicator-sound-a100dc24a2eb10a1f63be5391b97700032a16111.tar.bz2
ayatana-indicator-sound-a100dc24a2eb10a1f63be5391b97700032a16111.zip
tweaked the spacing and the transport bar dimensions - getting very close to sign off
Diffstat (limited to 'src/scrub-widget.c')
-rw-r--r--src/scrub-widget.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/scrub-widget.c b/src/scrub-widget.c
index 3dfa309..52d7b83 100644
--- a/src/scrub-widget.c
+++ b/src/scrub-widget.c
@@ -98,7 +98,7 @@ scrub_widget_init (ScrubWidget *self)
g_object_set(priv->ido_scrub_bar, "reverse-scroll-events", TRUE, NULL);
priv->scrubbing = FALSE;
- gtk_widget_set_size_request(GTK_WIDGET(priv->ido_scrub_bar), 100, 80);
+ gtk_widget_set_size_request(GTK_WIDGET(priv->ido_scrub_bar), 100, 25);
// register slider changes listening on the range
GtkWidget* scrub_widget = ido_scale_menu_item_get_scale((IdoScaleMenuItem*)priv->ido_scrub_bar);
@@ -219,6 +219,10 @@ scrub_widget_change_value_cb (GtkRange *range,
ScrubWidget* mitem = SCRUB_WIDGET(user_data);
ScrubWidgetPrivate * priv = SCRUB_WIDGET_GET_PRIVATE(mitem);
+ // Don't bother when the slider is grabbed
+ if(priv->scrubbing == TRUE)
+ return FALSE;
+
GValue value = {0};
g_value_init(&value, G_TYPE_DOUBLE);
gdouble clamped = CLAMP(new_value, 0, 100);
@@ -340,8 +344,7 @@ scrub_widget_slider_grabbed(GtkWidget *widget, gpointer user_data)
{
ScrubWidget* mitem = SCRUB_WIDGET(user_data);
ScrubWidgetPrivate * priv = SCRUB_WIDGET_GET_PRIVATE(mitem);
- priv->scrubbing = TRUE;
-
+ priv->scrubbing = TRUE;
}
static void