Ted Gould has proposed merging lp:~ted/indicator-applet/send-to-show into lp:indicator-applet.
Requested reviews: Indicator Applet Developers (indicator-applet-developers) Attaches to activates on the menuitems so that we can pass down the activate signal. -- https://code.launchpad.net/~ted/indicator-applet/send-to-show/+merge/35960 Your team ayatana-commits is subscribed to branch lp:indicator-applet.
=== 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:53:41 +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))) {
_______________________________________________ Mailing list: https://launchpad.net/~ayatana-commits Post to : ayatana-commits@lists.launchpad.net Unsubscribe : https://launchpad.net/~ayatana-commits More help : https://help.launchpad.net/ListHelp