diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2011-11-08 22:38:58 +0100 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2011-11-08 22:38:58 +0100 |
commit | c4a85b1a1ee2ef71524b2566c9047cb4817e84ed (patch) | |
tree | 0fe30ee52cc089f2d04d1426011aff8a1eada937 | |
parent | 31651dddeaa9dce1d51b0b78ccdcf98c118ca06e (diff) | |
download | ayatana-indicator-power-c4a85b1a1ee2ef71524b2566c9047cb4817e84ed.tar.gz ayatana-indicator-power-c4a85b1a1ee2ef71524b2566c9047cb4817e84ed.tar.bz2 ayatana-indicator-power-c4a85b1a1ee2ef71524b2566c9047cb4817e84ed.zip |
Add name-hint.
Using the defined PACKAGE_NAME value.
-rw-r--r-- | src/indicator-power.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/indicator-power.c b/src/indicator-power.c index cb684f5..8dc2788 100644 --- a/src/indicator-power.c +++ b/src/indicator-power.c @@ -97,6 +97,7 @@ static GtkLabel* get_label (IndicatorObject * io); static GtkImage* get_image (IndicatorObject * io); static GtkMenu* get_menu (IndicatorObject * io); static const gchar* get_accessible_desc (IndicatorObject * io); +static const gchar* get_name_hint (IndicatorObject * io); G_DEFINE_TYPE (IndicatorPower, indicator_power, INDICATOR_OBJECT_TYPE); @@ -120,6 +121,7 @@ indicator_power_class_init (IndicatorPowerClass *klass) io_class->get_image = get_image; io_class->get_menu = get_menu; io_class->get_accessible_desc = get_accessible_desc; + io_class->get_name_hint = get_name_hint; g_type_class_add_private (klass, sizeof (IndicatorPowerPrivate)); } @@ -966,3 +968,9 @@ get_accessible_desc (IndicatorObject *io) return priv->accessible_desc; } + +static const gchar * +get_name_hint (IndicatorObject *io) +{ + return PACKAGE_NAME; +} |