aboutsummaryrefslogtreecommitdiff
path: root/tests/test-libappindicator-fallback-item.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-01-12 17:00:56 -0600
committerTed Gould <ted@gould.cx>2010-01-12 17:00:56 -0600
commitf55bf250c331a4384f00ada67df4ff525b8c4ffe (patch)
tree0cbdb6b422540b16c48e2e87cf6617188b71ed5a /tests/test-libappindicator-fallback-item.c
parentbded6da0bb607eac38bb7f32bb74df0543a3de1b (diff)
downloadlibayatana-appindicator-f55bf250c331a4384f00ada67df4ff525b8c4ffe.tar.gz
libayatana-appindicator-f55bf250c331a4384f00ada67df4ff525b8c4ffe.tar.bz2
libayatana-appindicator-f55bf250c331a4384f00ada67df4ff525b8c4ffe.zip
Adding a menu so that the app indicator will init
Diffstat (limited to 'tests/test-libappindicator-fallback-item.c')
-rw-r--r--tests/test-libappindicator-fallback-item.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test-libappindicator-fallback-item.c b/tests/test-libappindicator-fallback-item.c
index ce3182c..38fdeea 100644
--- a/tests/test-libappindicator-fallback-item.c
+++ b/tests/test-libappindicator-fallback-item.c
@@ -101,13 +101,16 @@ kill_func (gpointer data)
int
main (int argc, char ** argv)
{
- g_type_init();
+ gtk_init(&argc, &argv);
TestLibappindicatorFallbackItem * item = g_object_new(TEST_LIBAPPINDICATOR_FALLBACK_ITEM_TYPE,
"id", "test-id",
"category", "other",
"icon-name", "bob",
NULL);
+
+ GtkWidget * menu = gtk_menu_new();
+ app_indicator_set_menu(APP_INDICATOR(item), GTK_MENU(menu));
g_timeout_add_seconds(1, kill_func, NULL);