From 87478982de012b8322090f40a747ab42f7dd838c Mon Sep 17 00:00:00 2001 From: Cody Russell Date: Wed, 3 Mar 2010 16:46:30 +0000 Subject: Test menuitem name. --- src/indicator-sound.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/indicator-sound.c b/src/indicator-sound.c index acacddc..49c02fa 100644 --- a/src/indicator-sound.c +++ b/src/indicator-sound.c @@ -439,6 +439,10 @@ static gboolean key_press_cb(GtkWidget* widget, GdkEventKey* event, gpointer dat gdouble current_value = gtk_range_get_value(range); gdouble new_value = current_value; const gdouble five_percent = 5; + GtkWidget *menuitem; + + menuitem = gtk_menu_get_active (GTK_MENU (widget)); + g_print (g_type_name (menuitem)); switch(event->keyval) { -- cgit v1.2.3