diff options
author | Luke Yelavich <luke.yelavich@canonical.com> | 2011-01-18 16:50:37 +1100 |
---|---|---|
committer | Luke Yelavich <luke.yelavich@canonical.com> | 2011-01-18 16:50:37 +1100 |
commit | 9215e19e801f59a2abd4dd92563cfe50f366f635 (patch) | |
tree | 9b4230d2bdc7a7bb1e46e429db8289ce6e8df3fc /tests | |
parent | ab0f0abc3571f801ffff8c42ad87d1e53d6a8ccf (diff) | |
download | libayatana-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.c | 6 | ||||
-rw-r--r-- | tests/dummy-indicator-signaler.c | 7 | ||||
-rw-r--r-- | tests/dummy-indicator-simple.c | 7 |
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; } |