[gnome-flashback] bluetooth-applet: fix turn on/off menu items



commit 00731c2e59ee205d10325dc02fceedc4210ecae5
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Thu Sep 10 10:50:10 2015 +0300

    bluetooth-applet: fix turn on/off menu items

 .../libbluetooth-applet/gf-bluetooth-applet.c      |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnome-flashback/libbluetooth-applet/gf-bluetooth-applet.c 
b/gnome-flashback/libbluetooth-applet/gf-bluetooth-applet.c
index e9b01af..a5535ed 100644
--- a/gnome-flashback/libbluetooth-applet/gf-bluetooth-applet.c
+++ b/gnome-flashback/libbluetooth-applet/gf-bluetooth-applet.c
@@ -157,7 +157,7 @@ popup_menu_cb (GtkStatusIcon *status_icon,
     {
       item = gtk_menu_item_new_with_label (_("Turn Off"));
       gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
-      g_signal_connect (item, "activate", G_CALLBACK (turn_off_cb), NULL);
+      g_signal_connect (item, "activate", G_CALLBACK (turn_off_cb), applet);
 
       item = gtk_menu_item_new_with_label (_("Send Files"));
       gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
@@ -167,7 +167,7 @@ popup_menu_cb (GtkStatusIcon *status_icon,
     {
       item = gtk_menu_item_new_with_label (_("Turn On"));
       gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
-      g_signal_connect (item, "activate", G_CALLBACK (turn_on_cb), NULL);
+      g_signal_connect (item, "activate", G_CALLBACK (turn_on_cb), applet);
     }
 
   item = gtk_menu_item_new_with_label (_("Bluetooth Settings"));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]