aboutsummaryrefslogtreecommitdiff
path: root/example/simple-client.c
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2010-02-16 16:23:53 +0100
committerSebastien Bacher <seb128@ubuntu.com>2010-02-16 16:23:53 +0100
commit60b206c8ce2e5393029765f7c6a93b36f47acfd7 (patch)
tree7747d93aa0998c8594930046de1730cb3dfb1fa1 /example/simple-client.c
parentbe1ce77e65c89fb426b0692745960c440323fd52 (diff)
parent2cc377b1d730787d4d1ae15ebeaf8563f264813f (diff)
downloadlibayatana-appindicator-60b206c8ce2e5393029765f7c6a93b36f47acfd7.tar.gz
libayatana-appindicator-60b206c8ce2e5393029765f7c6a93b36f47acfd7.tar.bz2
libayatana-appindicator-60b206c8ce2e5393029765f7c6a93b36f47acfd7.zip
releasing version 0.0.13-0ubuntu30.0.13-0ubuntu3
Diffstat (limited to 'example/simple-client.c')
-rw-r--r--example/simple-client.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/example/simple-client.c b/example/simple-client.c
index 997a446..a698b48 100644
--- a/example/simple-client.c
+++ b/example/simple-client.c
@@ -57,7 +57,6 @@ toggle_sensitivity_cb (GtkWidget *widget, gpointer data)
{
GtkWidget *target = (GtkWidget *)data;
- gtk_menu_item_set_label (GTK_MENU_ITEM (target), "modified!!");
gtk_widget_set_sensitive (target, !GTK_WIDGET_IS_SENSITIVE (target));
}
@@ -73,6 +72,7 @@ append_submenu (GtkWidget *item)
{
GtkWidget *menu;
GtkWidget *mi;
+ GtkWidget *prev_mi;
menu = gtk_menu_new ();
@@ -81,10 +81,11 @@ append_submenu (GtkWidget *item)
g_signal_connect (mi, "activate",
G_CALLBACK (item_clicked_cb), "Sub 1");
+ prev_mi = mi;
mi = gtk_menu_item_new_with_label ("Sub 2");
gtk_menu_shell_append (GTK_MENU_SHELL (menu), mi);
g_signal_connect (mi, "activate",
- G_CALLBACK (item_clicked_cb), "Sub 2");
+ G_CALLBACK (toggle_sensitivity_cb), prev_mi);
mi = gtk_menu_item_new_with_label ("Sub 3");
gtk_menu_shell_append (GTK_MENU_SHELL (menu), mi);