diff options
author | Ted Gould <ted@canonical.com> | 2008-11-19 15:26:40 -0600 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2008-11-19 15:26:40 -0600 |
commit | 712bddcdd12a7f4ee16bf9b1e2bdce9fe35bde46 (patch) | |
tree | 84515b0e5ba2cd35fecf670f31ed3ae5a18d0ffd | |
parent | 9d3a43aca6398a3c11c2b3cdc21beaa3ff0e21ae (diff) | |
download | libayatana-indicator-712bddcdd12a7f4ee16bf9b1e2bdce9fe35bde46.tar.gz libayatana-indicator-712bddcdd12a7f4ee16bf9b1e2bdce9fe35bde46.tar.bz2 libayatana-indicator-712bddcdd12a7f4ee16bf9b1e2bdce9fe35bde46.zip |
Okay, blocked the prelight on the item, now how do I get my buttons out of event prison.
-rw-r--r-- | src/indicator-audio.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/indicator-audio.c b/src/indicator-audio.c index 87f9284..5d2dbdc 100644 --- a/src/indicator-audio.c +++ b/src/indicator-audio.c @@ -2,10 +2,20 @@ #include <gtk/gtk.h> #include "indicator-audio.h" +void +block_prelight (GtkWidget * widget, GtkStateType prev, gpointer data) +{ + if (GTK_WIDGET_STATE(widget) == GTK_STATE_PRELIGHT) { + gtk_widget_set_state(widget, prev); + } + return; +} + GtkWidget * create_output_menu_item (void) { GtkWidget * menuitem = gtk_menu_item_new(); + g_signal_connect(G_OBJECT(menuitem), "state-changed", G_CALLBACK(block_prelight), NULL); GtkWidget * label_hbox = gtk_hbox_new(FALSE, 12); |