aboutsummaryrefslogtreecommitdiff
path: root/example/simple-client.c
diff options
context:
space:
mode:
authorCody Russell <crussell@canonical.com>2010-02-12 15:41:48 -0600
committerCody Russell <crussell@canonical.com>2010-02-12 15:41:48 -0600
commit84137b6a811bda3e3e9c0457fba32fc7294d45d6 (patch)
tree5a4a9fd8c21b730bbf93bd95aac237b3b0d987a6 /example/simple-client.c
parente18cf834e60e61bc836d42b6ae1201b595591ce3 (diff)
downloadlibayatana-appindicator-84137b6a811bda3e3e9c0457fba32fc7294d45d6.tar.gz
libayatana-appindicator-84137b6a811bda3e3e9c0457fba32fc7294d45d6.tar.bz2
libayatana-appindicator-84137b6a811bda3e3e9c0457fba32fc7294d45d6.zip
Minor cleanup
Diffstat (limited to 'example/simple-client.c')
-rw-r--r--example/simple-client.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/example/simple-client.c b/example/simple-client.c
index ee7bad2..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));
}
@@ -69,12 +68,6 @@ image_clicked_cb (GtkWidget *widget, gpointer data)
}
static void
-item_clicked_2_cb (GtkWidget *widget, GtkWidget *old)
-{
- gtk_widget_set_sensitive (old, FALSE);
-}
-
-static void
append_submenu (GtkWidget *item)
{
GtkWidget *menu;
@@ -92,7 +85,7 @@ append_submenu (GtkWidget *item)
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_2_cb), prev_mi);
+ 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);