← Back to team overview

ayatana-commits team mailing list archive

[Merge] lp:~3v1n0/indicator-datetime/add-name-hint into lp:indicator-datetime

 

Marco Trevisan (Treviño) has proposed merging lp:~3v1n0/indicator-datetime/add-name-hint into lp:indicator-datetime.

Requested reviews:
  Indicator Applet Developers (indicator-applet-developers)

For more details, see:
https://code.launchpad.net/~3v1n0/indicator-datetime/add-name-hint/+merge/81652

Added the name hint to the indicator, to use it on unity-panel-service.

I'm using the autoconf generated config.h PACKAGE_NAME value.
-- 
https://code.launchpad.net/~3v1n0/indicator-datetime/add-name-hint/+merge/81652
Your team ayatana-commits is subscribed to branch lp:indicator-datetime.
=== modified file 'src/indicator-datetime.c'
--- src/indicator-datetime.c	2011-09-21 20:19:53 +0000
+++ src/indicator-datetime.c	2011-11-08 23:01:20 +0000
@@ -161,6 +161,7 @@
 static GtkLabel * get_label               (IndicatorObject * io);
 static GtkMenu *  get_menu                (IndicatorObject * io);
 static const gchar * get_accessible_desc  (IndicatorObject * io);
+static const gchar * get_name_hint        (IndicatorObject * io);
 static GVariant * bind_enum_set           (const GValue * value, const GVariantType * type, gpointer user_data);
 static gboolean bind_enum_get             (GValue * value, GVariant * variant, gpointer user_data);
 static gchar * generate_format_string_now (IndicatorDatetime * self);
@@ -200,6 +201,7 @@
 	io_class->get_label = get_label;
 	io_class->get_menu  = get_menu;
 	io_class->get_accessible_desc = get_accessible_desc;
+	io_class->get_name_hint = get_name_hint;
 
 	g_object_class_install_property (object_class,
 	                                 PROP_SHOW_CLOCK,
@@ -1548,3 +1550,9 @@
 	}
 	return NULL;
 }
+
+static const gchar *
+get_name_hint (IndicatorObject * io)
+{
+	return PACKAGE_NAME;
+}


Follow ups