aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorCody Russell <crussell@canonical.com>2010-01-07 13:34:11 -0600
committerTed Gould <ted@gould.cx>2010-01-07 13:34:11 -0600
commite76d63c3cfdcbb39419499681e9d58448c693c92 (patch)
tree56b4373bdb70453fa8f85e67dd74f47282687b87 /example
parentdd2ed951b8aeb16671bebd2ea104953252ab54a5 (diff)
parenta60f25e5ca657a7c781bed90fd67020c7caa2320 (diff)
downloadlibayatana-appindicator-e76d63c3cfdcbb39419499681e9d58448c693c92.tar.gz
libayatana-appindicator-e76d63c3cfdcbb39419499681e9d58448c693c92.tar.bz2
libayatana-appindicator-e76d63c3cfdcbb39419499681e9d58448c693c92.zip
Support for check items in the libappindicator menu parser.
Diffstat (limited to 'example')
-rw-r--r--example/simple-client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/simple-client.c b/example/simple-client.c
index ea4da9d..8ce9fba 100644
--- a/example/simple-client.c
+++ b/example/simple-client.c
@@ -53,12 +53,12 @@ main (int argc, char ** argv)
app_indicator_set_attention_icon(ci, "indicator-messages-new");
menu = gtk_menu_new ();
- GtkWidget *item = gtk_menu_item_new_with_label ("1");
+ GtkWidget *item = gtk_check_menu_item_new_with_label ("1");
g_signal_connect (item, "activate",
G_CALLBACK (item_clicked_cb), "1");
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
- item = gtk_menu_item_new_with_label ("2");
+ item = gtk_radio_menu_item_new_with_label (NULL, "2");
g_signal_connect (item, "activate",
G_CALLBACK (item_clicked_cb), "2");
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);