ayatana-commits team mailing list archive
-
ayatana-commits team
-
Mailing list archive
-
Message #02407
[Branch ~indicator-applet-developers/indicator-applet/applet] Rev 372: Signaling the activate on the top level items.
Merge authors:
Ted Gould (ted)
Related merge proposals:
https://code.launchpad.net/~ted/indicator-applet/send-to-show/+merge/35960
proposed by: Ted Gould (ted)
review: Approve - David Barth (dbarth)
------------------------------------------------------------
revno: 372 [merge]
committer: Ted Gould <ted@xxxxxxxx>
branch nick: applet
timestamp: Tue 2010-09-21 16:28:42 -0500
message:
Signaling the activate on the top level items.
modified:
configure.ac
src/applet-main.c
--
lp:indicator-applet
https://code.launchpad.net/~indicator-applet-developers/indicator-applet/applet
Your team ayatana-commits is subscribed to branch lp:indicator-applet.
To unsubscribe from this branch go to https://code.launchpad.net/~indicator-applet-developers/indicator-applet/applet/+edit-subscription
=== modified file 'configure.ac'
--- configure.ac 2010-09-09 17:14:44 +0000
+++ configure.ac 2010-09-21 21:28:42 +0000
@@ -28,7 +28,7 @@
GTK_REQUIRED_VERSION=2.12
PANEL_REQUIRED_VERSION=2.0.0
DBUS_REQUIRED_VERSION=0.76
-INDICATOR_REQUIRED_VERSION=0.3.0
+INDICATOR_REQUIRED_VERSION=0.3.14
PKG_CHECK_MODULES(APPLET, gtk+-2.0 >= $GTK_REQUIRED_VERSION
libpanelapplet-2.0 >= $PANEL_REQUIRED_VERSION
=== modified file 'src/applet-main.c'
--- src/applet-main.c 2010-09-03 18:49:57 +0000
+++ src/applet-main.c 2010-09-19 18:07:34 +0000
@@ -216,6 +216,17 @@
}
static void
+entry_activated (GtkWidget * widget, gpointer user_data)
+{
+ g_return_if_fail(GTK_IS_WIDGET(widget));
+ gpointer pio = g_object_get_data(G_OBJECT(widget), "indicator");
+ g_return_if_fail(INDICATOR_IS_OBJECT(pio));
+ IndicatorObject * io = INDICATOR_OBJECT(pio);
+
+ return indicator_object_entry_activate(io, (IndicatorObjectEntry *)user_data, gtk_get_current_event_time());
+}
+
+static void
entry_added (IndicatorObject * io, IndicatorObjectEntry * entry, GtkWidget * menubar)
{
g_debug("Signal: Entry Added");
@@ -229,6 +240,8 @@
g_object_set_data (G_OBJECT (menuitem), "indicator", io);
g_object_set_data (G_OBJECT (menuitem), "box", box);
+ g_signal_connect(G_OBJECT(menuitem), "activate", G_CALLBACK(entry_activated), entry);
+
if (entry->image != NULL) {
gtk_box_pack_start(GTK_BOX(box), GTK_WIDGET(entry->image), FALSE, FALSE, 1);
if (gtk_widget_get_visible(GTK_WIDGET(entry->image))) {