aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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);