aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2011-11-30 16:03:54 +0000
committerJavier Jardón <javier.jardon@codethink.co.uk>2011-11-30 16:03:54 +0000
commit5e7445585d40682f25f0a2a9f434489238bf6f2b (patch)
tree0fe30ee52cc089f2d04d1426011aff8a1eada937
parent31651dddeaa9dce1d51b0b78ccdcf98c118ca06e (diff)
parentc4a85b1a1ee2ef71524b2566c9047cb4817e84ed (diff)
downloadayatana-indicator-power-5e7445585d40682f25f0a2a9f434489238bf6f2b.tar.gz
ayatana-indicator-power-5e7445585d40682f25f0a2a9f434489238bf6f2b.tar.bz2
ayatana-indicator-power-5e7445585d40682f25f0a2a9f434489238bf6f2b.zip
Add name-hint.
Using the defined PACKAGE_NAME value.
-rw-r--r--src/indicator-power.c8
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;
+}