diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-06-13 18:27:51 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-06-13 18:27:51 -0500 |
commit | ba66f20cf47b078e65ec81cccdcaa39533823274 (patch) | |
tree | c654efe323b07335d765486dd15338fd8318e375 /src | |
parent | 146081cfecfe27e69a4b93a15782924d79c6c18e (diff) | |
download | ayatana-indicator-session-ba66f20cf47b078e65ec81cccdcaa39533823274.tar.gz ayatana-indicator-session-ba66f20cf47b078e65ec81cccdcaa39533823274.tar.bz2 ayatana-indicator-session-ba66f20cf47b078e65ec81cccdcaa39533823274.zip |
in user-widget.c, remove unused function user_widget_button_release_event()
Diffstat (limited to 'src')
-rw-r--r-- | src/user-widget.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/user-widget.c b/src/user-widget.c index 9fac172..5d06a75 100644 --- a/src/user-widget.c +++ b/src/user-widget.c @@ -62,9 +62,6 @@ static void user_widget_finalize (GObject *object); static void user_widget_set_twin_item (UserWidget* self, DbusmenuMenuitem* twin_item); -// keyevent consumers -static gboolean user_widget_button_release_event (GtkWidget *menuitem, - GdkEventButton *event); static void _color_shade (const CairoColorRGB *a, float k, @@ -84,11 +81,8 @@ G_DEFINE_TYPE (UserWidget, user_widget, GTK_TYPE_MENU_ITEM); static void user_widget_class_init (UserWidgetClass *klass) { - GObjectClass *gobject_class = G_OBJECT_CLASS (klass); - GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); + GObjectClass * gobject_class = G_OBJECT_CLASS (klass); - widget_class->button_release_event = user_widget_button_release_event; - g_type_class_add_private (klass, sizeof (UserWidgetPrivate)); gobject_class->dispose = user_widget_dispose; @@ -521,17 +515,6 @@ _color_shade (const CairoColorRGB *a, float k, CairoColorRGB *b) b->b = blue; } - -/*****************************************************************/ - -/* Suppress/consume keyevents */ -static gboolean -user_widget_button_release_event (GtkWidget *menuitem, - GdkEventButton *event) -{ - return FALSE; -} - /*** **** ***/ |