aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLuke Yelavich <luke.yelavich@canonical.com>2011-01-18 16:50:37 +1100
committerLuke Yelavich <luke.yelavich@canonical.com>2011-01-18 16:50:37 +1100
commit9215e19e801f59a2abd4dd92563cfe50f366f635 (patch)
tree9b4230d2bdc7a7bb1e46e429db8289ce6e8df3fc /tests
parentab0f0abc3571f801ffff8c42ad87d1e53d6a8ccf (diff)
downloadlibayatana-indicator-9215e19e801f59a2abd4dd92563cfe50f366f635.tar.gz
libayatana-indicator-9215e19e801f59a2abd4dd92563cfe50f366f635.tar.bz2
libayatana-indicator-9215e19e801f59a2abd4dd92563cfe50f366f635.zip
Add accessible_name variable in indicator entry structure
Diffstat (limited to 'tests')
-rw-r--r--tests/dummy-indicator-null.c6
-rw-r--r--tests/dummy-indicator-signaler.c7
-rw-r--r--tests/dummy-indicator-simple.c7
3 files changed, 20 insertions, 0 deletions
diff --git a/tests/dummy-indicator-null.c b/tests/dummy-indicator-null.c
index 767067d..acebdb8 100644
--- a/tests/dummy-indicator-null.c
+++ b/tests/dummy-indicator-null.c
@@ -46,6 +46,11 @@ get_menu (IndicatorObject * io)
{
return NULL;
}
+gchar *
+get_accessible_name (IndicatorObject * io)
+{
+ return NULL;
+}
static void dummy_indicator_null_class_init (DummyIndicatorNullClass *klass);
static void dummy_indicator_null_init (DummyIndicatorNull *self);
@@ -67,6 +72,7 @@ dummy_indicator_null_class_init (DummyIndicatorNullClass *klass)
io_class->get_label = get_label;
io_class->get_image = get_icon;
io_class->get_menu = get_menu;
+ io_class->get_accessible_name = get_accessible_name;
return;
}
diff --git a/tests/dummy-indicator-signaler.c b/tests/dummy-indicator-signaler.c
index 9bd01bf..7dbe704 100644
--- a/tests/dummy-indicator-signaler.c
+++ b/tests/dummy-indicator-signaler.c
@@ -50,6 +50,12 @@ get_menu (IndicatorObject * io)
return main_menu;
}
+gchar *
+get_accessible_name (IndicatorObject * io)
+{
+ return "Signaler Item";
+}
+
static void dummy_indicator_signaler_class_init (DummyIndicatorSignalerClass *klass);
static void dummy_indicator_signaler_init (DummyIndicatorSignaler *self);
static void dummy_indicator_signaler_dispose (GObject *object);
@@ -70,6 +76,7 @@ dummy_indicator_signaler_class_init (DummyIndicatorSignalerClass *klass)
io_class->get_label = get_label;
io_class->get_image = get_icon;
io_class->get_menu = get_menu;
+ io_class->get_accessible_name = get_accessible_name;
return;
}
diff --git a/tests/dummy-indicator-simple.c b/tests/dummy-indicator-simple.c
index 654650f..0bbcde6 100644
--- a/tests/dummy-indicator-simple.c
+++ b/tests/dummy-indicator-simple.c
@@ -50,6 +50,12 @@ get_menu (IndicatorObject * io)
return main_menu;
}
+gchar *
+get_accessible_name (IndicatorObject * io)
+{
+ return "Simple Item";
+}
+
static void dummy_indicator_simple_class_init (DummyIndicatorSimpleClass *klass);
static void dummy_indicator_simple_init (DummyIndicatorSimple *self);
static void dummy_indicator_simple_dispose (GObject *object);
@@ -70,6 +76,7 @@ dummy_indicator_simple_class_init (DummyIndicatorSimpleClass *klass)
io_class->get_label = get_label;
io_class->get_image = get_icon;
io_class->get_menu = get_menu;
+ io_class->get_accessible_name = get_accessible_name;
return;
}