[mutter] Use g_signal_connect_data() instead of deprecated gtk_signal_connect_full()



commit fd12eddb5db4c422578c49a754288d1bd03d492f
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Sat Jun 26 18:09:30 2010 +0300

    Use g_signal_connect_data() instead of deprecated gtk_signal_connect_full()
    
    Bug 622800.

 src/ui/menu.c |   16 +++++++---------
 1 files changed, 7 insertions(+), 9 deletions(-)
---
diff --git a/src/ui/menu.c b/src/ui/menu.c
index b6f34b8..838bca8 100644
--- a/src/ui/menu.c
+++ b/src/ui/menu.c
@@ -445,12 +445,11 @@ meta_window_menu_new   (MetaFrames         *frames,
                           "workspace",
                           GINT_TO_POINTER (j));
 
-                      gtk_signal_connect_full (GTK_OBJECT (submi),
+                      g_signal_connect_data (GTK_OBJECT (submi),
                           "activate",
                           G_CALLBACK (activate_cb),
-                          NULL,
                           md,
-                          g_free, FALSE, FALSE);
+                          (GClosureNotify) g_free, 0);
 
                       gtk_menu_shell_append (GTK_MENU_SHELL (submenu), submi);
 
@@ -473,12 +472,11 @@ meta_window_menu_new   (MetaFrames         *frames,
               md->menu = menu;
               md->op = menuitem.op;
               
-              gtk_signal_connect_full (GTK_OBJECT (mi),
-                                       "activate",
-                                       G_CALLBACK (activate_cb),
-                                       NULL,
-                                       md,
-                                       g_free, FALSE, FALSE);
+              g_signal_connect_data (GTK_OBJECT (mi),
+                                     "activate",
+                                     G_CALLBACK (activate_cb),
+                                     md,
+                                     (GClosureNotify) g_free, 0);
             }
 
           if (mi)



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