ayatana-commits team mailing list archive
-
ayatana-commits team
-
Mailing list archive
-
Message #04032
[Merge] lp:~3v1n0/indicator-messages/add-name-hint into lp:indicator-messages
Marco Trevisan (Treviño) has proposed merging lp:~3v1n0/indicator-messages/add-name-hint into lp:indicator-messages.
Requested reviews:
Indicator Applet Developers (indicator-applet-developers)
For more details, see:
https://code.launchpad.net/~3v1n0/indicator-messages/add-name-hint/+merge/81650
Added the name hint to the indicator, to use it on unity-panel-service.
I'm using the autoconf generated config.h PACKAGE value.
--
https://code.launchpad.net/~3v1n0/indicator-messages/add-name-hint/+merge/81650
Your team ayatana-commits is subscribed to branch lp:indicator-messages.
=== modified file 'src/indicator-messages.c'
--- src/indicator-messages.c 2011-09-21 20:14:17 +0000
+++ src/indicator-messages.c 2011-11-08 22:56:25 +0000
@@ -20,6 +20,8 @@
with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "config.h"
+
#include <string.h>
#include <glib.h>
#include <glib-object.h>
@@ -93,6 +95,7 @@
IndicatorObjectEntry * entry,
guint time, gpointer data);
static const gchar * get_accessible_desc (IndicatorObject * io);
+static const gchar * get_name_hint (IndicatorObject * io);
static void connection_change (IndicatorServiceManager * sm,
gboolean connected,
gpointer user_data);
@@ -134,6 +137,7 @@
io_class->get_image = get_icon;
io_class->get_menu = get_menu;
io_class->get_accessible_desc = get_accessible_desc;
+ io_class->get_name_hint = get_name_hint;
io_class->secondary_activate = indicator_messages_middle_click;
if (bus_node_info == NULL) {
@@ -796,6 +800,13 @@
return accessible_desc;
}
+/* Returns the name hint of the indicator */
+static const gchar *
+get_name_hint (IndicatorObject *io)
+{
+ return PACKAGE;
+}
+
/* Hide the notifications on middle-click over the indicator-messages */
static void
indicator_messages_middle_click (IndicatorObject * io, IndicatorObjectEntry * entry,
Follow ups