aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCody Russell <crussell@canonical.com>2009-12-03 23:23:01 -0600
committerCody Russell <crussell@canonical.com>2009-12-03 23:23:01 -0600
commit580f2be463c2ede353491c8ca0ea056b861aec69 (patch)
treeafd24b34125fa2efbde67c2475c22b22e7b44fdf /tests
parent92a3e89c7690bda61d1548fb5c21b056be078192 (diff)
downloadlibayatana-appindicator-580f2be463c2ede353491c8ca0ea056b861aec69.tar.gz
libayatana-appindicator-580f2be463c2ede353491c8ca0ea056b861aec69.tar.bz2
libayatana-appindicator-580f2be463c2ede353491c8ca0ea056b861aec69.zip
API changes, gtk menu support
Diffstat (limited to 'tests')
-rw-r--r--tests/test-libappindicator-dbus-server.c1
-rw-r--r--tests/test-libappindicator.c12
-rw-r--r--tests/test-simple-app.c1
3 files changed, 9 insertions, 5 deletions
diff --git a/tests/test-libappindicator-dbus-server.c b/tests/test-libappindicator-dbus-server.c
index 6216c94..b316456 100644
--- a/tests/test-libappindicator-dbus-server.c
+++ b/tests/test-libappindicator-dbus-server.c
@@ -24,6 +24,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include <dbus/dbus-glib.h>
#include <dbus/dbus-glib-lowlevel.h>
#include <glib.h>
+#include <libdbusmenu-glib/server.h>
#include <libappindicator/app-indicator.h>
#include "test-defines.h"
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)));
diff --git a/tests/test-simple-app.c b/tests/test-simple-app.c
index 60ed88f..f5957c8 100644
--- a/tests/test-simple-app.c
+++ b/tests/test-simple-app.c
@@ -23,6 +23,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include <dbus/dbus-glib.h>
#include <dbus/dbus-glib-lowlevel.h>
#include <glib.h>
+#include <libdbusmenu-glib/server.h>
#include <libappindicator/app-indicator.h>
static GMainLoop * mainloop = NULL;