diff options
author | Andrea Cimitan <andrea.cimitan@gmail.com> | 2010-09-29 18:53:07 +0200 |
---|---|---|
committer | Andrea Cimitan <andrea.cimitan@gmail.com> | 2010-09-29 18:53:07 +0200 |
commit | 108d5224399eb4bbca6ebe50fa90b63847e8d130 (patch) | |
tree | 2c0358689a22c21f56dcdbce2e4de82dbf66ef0f | |
parent | 9344e1631f080428ba5f9cd9d77d16be1404f3b1 (diff) | |
download | ayatana-indicator-sound-108d5224399eb4bbca6ebe50fa90b63847e8d130.tar.gz ayatana-indicator-sound-108d5224399eb4bbca6ebe50fa90b63847e8d130.tar.bz2 ayatana-indicator-sound-108d5224399eb4bbca6ebe50fa90b63847e8d130.zip |
use menuitem
-rw-r--r-- | src/play-button.c | 9 | ||||
-rw-r--r-- | src/play-button.h | 4 |
2 files changed, 6 insertions, 7 deletions
diff --git a/src/play-button.c b/src/play-button.c index 5993e3b..35b1dc8 100644 --- a/src/play-button.c +++ b/src/play-button.c @@ -28,8 +28,8 @@ Uses code from ctk #include "play-button.h" #define RECT_WIDTH 130.0f -/*#define Y 7.0f*/ -/*#define X 37.0f*/ +#define Y 7.0f +#define X 37.0f #define INNER_RADIUS 12.5 #define MIDDLE_RADIUS 13.5f #define OUTER_RADIUS 14.5f @@ -102,7 +102,7 @@ static gboolean play_button_expose (GtkWidget *button, GdkEventExpose *event); static void draw (GtkWidget* button, cairo_t *cr); -G_DEFINE_TYPE (PlayButton, play_button, GTK_TYPE_EVENT_BOX); +G_DEFINE_TYPE (PlayButton, play_button, GTK_TYPE_MENU_ITEM); /// internal helper functions ////////////////////////////////////////////////// @@ -370,8 +370,7 @@ play_button_init (PlayButton *self) GINT_TO_POINTER(TRANSPORT_NEXT), next_list); - gtk_widget_set_size_request(GTK_WIDGET(self), 200, 50); - gtk_event_box_set_visible_window (GTK_EVENT_BOX(self), FALSE); + gtk_widget_set_size_request(GTK_WIDGET(self), 200, 50); } diff --git a/src/play-button.h b/src/play-button.h index 1f04562..86d76ca 100644 --- a/src/play-button.h +++ b/src/play-button.h @@ -46,11 +46,11 @@ typedef enum { }PlayButtonState; struct _PlayButtonClass { - GtkEventBoxClass parent_class; + GtkMenuItemClass parent_class; }; struct _PlayButton { - GtkEventBox parent; + GtkMenuItem parent; }; GType play_button_get_type (void); |