From c4a85b1a1ee2ef71524b2566c9047cb4817e84ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Tue, 8 Nov 2011 22:38:58 +0100 Subject: Add name-hint. Using the defined PACKAGE_NAME value. --- src/indicator-power.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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; +} -- cgit v1.2.3