From 095cfa5b70783a0937c1a1272e5fdd59fd24e69a Mon Sep 17 00:00:00 2001 From: Conor Curran Date: Tue, 28 Sep 2010 18:11:17 +0100 Subject: tidied --- src/metadata-widget.c | 1 - src/play-button.c | 9 +++++++-- 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); } } -- cgit v1.2.3