N#17918 Volumebar widget background image doesn't change when widget goes into mute...
authorLuc Pionchon <luc.pionchon@nokia.com>
Wed, 5 Oct 2005 11:04:42 +0000 (11:04 +0000)
committerLuc Pionchon <luc.pionchon@nokia.com>
Wed, 5 Oct 2005 11:04:42 +0000 (11:04 +0000)
* hildon-vvolumebar.c (hildon_volumebar_set_mute): queued widget
        for drawing

        * hildon-hvolumebar.c (hildon_hvolumebar_expose): paint background
        using the state of the internal volumebar, not the whole container

        * hildon-vvolumebar.c (hildon_vvolumebar_expose): paint background
        using the state of the internal volumebar, not the whole container

ChangeLog
hildon-widgets/hildon-hvolumebar.c
hildon-widgets/hildon-volumebar.c
hildon-widgets/hildon-vvolumebar.c

index 7dacc0f..39cdf79 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,21 @@
+2005-10-05  Luc Pionchon  <luc.pionchon@nokia.com>
+
+       N#17918 Volumebar widget background image doesn't change when
+       widget goes into mute state,
+       
+       * hildon-vvolumebar.c (hildon_volumebar_set_mute): queued widget
+       for drawing
+       
+       * hildon-hvolumebar.c (hildon_hvolumebar_expose): paint background
+       using the state of the internal volumebar, not the whole container
+
+       * hildon-vvolumebar.c (hildon_vvolumebar_expose): paint background
+       using the state of the internal volumebar, not the whole container
+
 2005-09-19 Tapani Palli <tapani.palli@nokia.com>
 
-       * hildon-widgets/hildon-dialoghelp.h,
-       hildon-widgets/hildon-dialoghelp.c : added gtk_dialog_help_disable and
-       fixed bug #19468
+       * hildon-widgets/hildon-dialoghelp.[ch]: added
+       gtk_dialog_help_disable and fixed bug N#19468
 
 2005-09-14  Luc Pionchon  <luc.pionchon@nokia.com>
 
index 6de08ee..c5522bb 100644 (file)
@@ -170,9 +170,12 @@ static void hildon_hvolumebar_map(GtkWidget * widget)
 static gboolean hildon_hvolumebar_expose(GtkWidget * widget,
                                          GdkEventExpose * event)
 {
+    HildonVolumebarPrivate *priv;
+    priv = HILDON_VOLUMEBAR_GET_PRIVATE(HILDON_VOLUMEBAR(widget));
+    
     if (GTK_WIDGET_DRAWABLE(widget)) {
         gtk_paint_box(widget->style, widget->window,
-                      GTK_WIDGET_STATE(widget), GTK_SHADOW_OUT,
+                      GTK_WIDGET_STATE(priv->volumebar), GTK_SHADOW_OUT,
                       NULL, widget, "background",
                       widget->allocation.x,
                       widget->allocation.y,
index 162b580..526cd65 100644 (file)
@@ -413,6 +413,8 @@ hildon_volumebar_set_mute(HildonVolumebar * self, gboolean mute)
     }
 
     gtk_toggle_button_set_active(priv->tbutton, mute);
+
+    gtk_widget_queue_draw (GTK_WIDGET (self));
 }
 
 /**
index 3737021..a65b12e 100644 (file)
@@ -141,9 +141,12 @@ GtkWidget *hildon_vvolumebar_new()
 static gboolean hildon_vvolumebar_expose(GtkWidget * widget,
                                          GdkEventExpose * event)
 {
+    HildonVolumebarPrivate *priv;
+    priv = HILDON_VOLUMEBAR_GET_PRIVATE(HILDON_VOLUMEBAR(widget));
+    
     if (GTK_WIDGET_DRAWABLE(widget)) {
         gtk_paint_box(widget->style, widget->window,
-                      GTK_WIDGET_STATE(widget), GTK_SHADOW_OUT,
+                      GTK_WIDGET_STATE(priv->volumebar), GTK_SHADOW_OUT,
                       NULL, widget, "background",
                       widget->allocation.x,
                       widget->allocation.y,