diff options
author | Ted Gould <ted@gould.cx> | 2010-01-12 17:00:56 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-01-12 17:00:56 -0600 |
commit | f55bf250c331a4384f00ada67df4ff525b8c4ffe (patch) | |
tree | 0cbdb6b422540b16c48e2e87cf6617188b71ed5a | |
parent | bded6da0bb607eac38bb7f32bb74df0543a3de1b (diff) | |
download | ayatana-indicator-application-f55bf250c331a4384f00ada67df4ff525b8c4ffe.tar.gz ayatana-indicator-application-f55bf250c331a4384f00ada67df4ff525b8c4ffe.tar.bz2 ayatana-indicator-application-f55bf250c331a4384f00ada67df4ff525b8c4ffe.zip |
Adding a menu so that the app indicator will init
-rw-r--r-- | tests/test-libappindicator-fallback-item.c | 5 |
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); |