diff options
author | Ted Gould <ted@gould.cx> | 2009-12-04 09:31:28 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2009-12-04 09:31:28 -0600 |
commit | 17478a95926724528515cf1d6aadd7730cceb7b0 (patch) | |
tree | 227ada7b7c7fec3c4016546eb6d52332cabd39f8 /tests/test-libappindicator.c | |
parent | 92a3e89c7690bda61d1548fb5c21b056be078192 (diff) | |
parent | 7406617f441d1377aee6beebe3498c1e37fec57d (diff) | |
download | libayatana-appindicator-17478a95926724528515cf1d6aadd7730cceb7b0.tar.gz libayatana-appindicator-17478a95926724528515cf1d6aadd7730cceb7b0.tar.bz2 libayatana-appindicator-17478a95926724528515cf1d6aadd7730cceb7b0.zip |
Adding GTK Menu support to libappindicator and removing dbusmenu support.
Diffstat (limited to 'tests/test-libappindicator.c')
-rw-r--r-- | tests/test-libappindicator.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/test-libappindicator.c b/tests/test-libappindicator.c index 8b76d6e..c0ec1ff 100644 --- a/tests/test-libappindicator.c +++ b/tests/test-libappindicator.c @@ -42,7 +42,10 @@ test_libappindicator_prop_signals_helper (AppIndicator * ci, gboolean * signalac void test_libappindicator_prop_signals (void) { - AppIndicator * ci = APP_INDICATOR(g_object_new(APP_INDICATOR_TYPE, NULL)); + AppIndicator * ci = app_indicator_new ("test-app-indicator", + "indicator-messages", + APP_INDICATOR_CATEGORY_APPLICATION_STATUS); + g_assert(ci != NULL); gboolean signaled = FALSE; @@ -109,13 +112,12 @@ test_libappindicator_prop_signals (void) void test_libappindicator_init_set_props (void) { - AppIndicator * ci = APP_INDICATOR(g_object_new(APP_INDICATOR_TYPE, NULL)); + AppIndicator * ci = app_indicator_new ("my-id", + "my-name", + APP_INDICATOR_CATEGORY_APPLICATION_STATUS); g_assert(ci != NULL); - app_indicator_set_id(ci, "my-id"); - app_indicator_set_category(ci, APP_INDICATOR_CATEGORY_APPLICATION_STATUS); app_indicator_set_status(ci, APP_INDICATOR_STATUS_ACTIVE); - app_indicator_set_icon(ci, "my-name"); app_indicator_set_attention_icon(ci, "my-attention-name"); g_assert(!g_strcmp0("my-id", app_indicator_get_id(ci))); |