diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-09-28 18:11:17 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-09-28 18:11:17 +0100 |
commit | 095cfa5b70783a0937c1a1272e5fdd59fd24e69a (patch) | |
tree | 02a0f314a0abe233cc27d61de5971c9f559465ff | |
parent | 2f8ec1ef668da07f3b74140b8db3b12f87d2cde0 (diff) | |
download | ayatana-indicator-sound-095cfa5b70783a0937c1a1272e5fdd59fd24e69a.tar.gz ayatana-indicator-sound-095cfa5b70783a0937c1a1272e5fdd59fd24e69a.tar.bz2 ayatana-indicator-sound-095cfa5b70783a0937c1a1272e5fdd59fd24e69a.zip |
tidied
-rw-r--r-- | src/metadata-widget.c | 1 | ||||
-rw-r--r-- | src/play-button.c | 9 | ||||
-rw-r--r-- | src/transport-widget.c | 6 |
3 files changed, 9 insertions, 7 deletions
diff --git a/src/metadata-widget.c b/src/metadata-widget.c index 7179014..64bce36 100644 --- a/src/metadata-widget.c +++ b/src/metadata-widget.c @@ -51,7 +51,6 @@ static void metadata_widget_init (MetadataWidget *self); static void metadata_widget_dispose (GObject *object); static void metadata_widget_finalize (GObject *object); static gboolean metadata_image_expose (GtkWidget *image, GdkEventExpose *event, gpointer user_data); -//static void metadata_widget_style_changed_cb(GtkWidget *widget, gpointer user_data); static void metadata_widget_set_style (GtkWidget* button, GtkStyle* style); // keyevent consumers diff --git a/src/play-button.c b/src/play-button.c index d15b139..2a73030 100644 --- a/src/play-button.c +++ b/src/play-button.c @@ -371,6 +371,7 @@ play_button_init (PlayButton *self) next_list); gtk_widget_set_size_request(GTK_WIDGET(self), 200, 50); + GtkA gtk_event_box_set_visible_window (GTK_EVENT_BOX(self), FALSE); } @@ -393,11 +394,15 @@ play_button_expose (GtkWidget *button, GdkEventExpose *event) cairo_t *cr; cr = gdk_cairo_create (button->window); - /*cairo_rectangle (cr, + //GtkAllocation alloc; + //gtk_widget_get_allocation (metadata, &alloc); + + g_debug("In the playbutton's expose method, x = %i, y=%i and width: %i and height: %i'") + cairo_rectangle (cr, event->area.x, event->area.y, event->area.width, event->area.height); - cairo_clip(cr);*/ + cairo_clip(cr); draw (button, cr); cairo_destroy (cr); diff --git a/src/transport-widget.c b/src/transport-widget.c index eba2099..37ea874 100644 --- a/src/transport-widget.c +++ b/src/transport-widget.c @@ -165,8 +165,7 @@ transport_widget_menu_hidden ( GtkWidget *menu, g_debug("Transport Widget's menu hidden method called"); g_return_if_fail(IS_TRANSPORT_WIDGET(transport)); TransportWidgetPrivate * priv = TRANSPORT_WIDGET_GET_PRIVATE(TRANSPORT_WIDGET(transport)); - play_button_react_to_button_release(priv->play_button, TRANSPORT_NADA); - + play_button_react_to_button_release(priv->play_button, TRANSPORT_NADA); } @@ -226,8 +225,7 @@ transport_widget_property_update(DbusmenuMenuitem* item, gchar* property, TransportWidgetPrivate *priv = TRANSPORT_WIDGET_GET_PRIVATE(bar); int update_value = g_value_get_int(value); g_debug("transport_widget_update_state - with value %i", update_value); - play_button_toggle_play_pause(priv->play_button, (PlayButtonState)update_value); - + play_button_toggle_play_pause(priv->play_button, (PlayButtonState)update_value); } } |