[gnome-commander/gcmd-1-3] Replacing obsoleted gtk_signal_connect() with g_signal_connect()



commit b2fb0585f9e6ed9b1fe4c46983c8c112c5891d7a
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Wed Sep 30 17:44:50 2009 +0200

    Replacing obsoleted gtk_signal_connect() with g_signal_connect()

 src/gnome-cmd-combo.cc     |   16 ++++++++--------
 src/gnome-cmd-main-menu.cc |    2 +-
 2 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/gnome-cmd-combo.cc b/src/gnome-cmd-combo.cc
index 911dfc9..07560c5 100644
--- a/src/gnome-cmd-combo.cc
+++ b/src/gnome-cmd-combo.cc
@@ -383,7 +383,7 @@ static void init (GnomeCmdCombo *combo)
     gtk_box_pack_end (GTK_BOX (combo), combo->button, FALSE, FALSE, 0);
 
     // connect button signals
-    gtk_signal_connect (GTK_OBJECT (combo->button), "clicked", (GtkSignalFunc) on_popup_button_release, combo);
+    g_signal_connect (combo->button, "clicked", G_CALLBACK (on_popup_button_release), combo);
 
     combo->popwin = gtk_window_new (GTK_WINDOW_POPUP);
     gtk_widget_ref (combo->popwin);
@@ -394,10 +394,10 @@ static void init (GnomeCmdCombo *combo)
     gtk_widget_set_events (combo->popwin, GDK_BUTTON_PRESS_MASK);
 
     // connect popupwin signals
-    gtk_signal_connect (GTK_OBJECT (combo->popwin), "button-release-event", GTK_SIGNAL_FUNC (on_popwin_button_released), combo);
-    gtk_signal_connect (GTK_OBJECT (combo->popwin), "key-press-event", GTK_SIGNAL_FUNC (on_popwin_keypress), combo);
-    gtk_signal_connect (GTK_OBJECT (combo->popwin), "show", GTK_SIGNAL_FUNC (on_popwin_show), combo);
-    gtk_signal_connect (GTK_OBJECT (combo->popwin), "hide", GTK_SIGNAL_FUNC (on_popwin_hide), combo);
+    g_signal_connect (combo->popwin, "button-release-event", G_CALLBACK (on_popwin_button_released), combo);
+    g_signal_connect (combo->popwin, "key-press-event", G_CALLBACK (on_popwin_keypress), combo);
+    g_signal_connect (combo->popwin, "show", G_CALLBACK (on_popwin_show), combo);
+    g_signal_connect (combo->popwin, "hide", G_CALLBACK (on_popwin_hide), combo);
 
     event_box = gtk_event_box_new ();
     gtk_widget_ref (event_box);
@@ -478,9 +478,9 @@ GtkWidget *gnome_cmd_combo_new (gint num_cols, gint text_col, gchar **col_titles
     gtk_widget_show (combo->list);
 
     // connect list signals
-    gtk_signal_connect (GTK_OBJECT (combo->list), "button-press-event", GTK_SIGNAL_FUNC (on_list_button_press), combo);
-    gtk_signal_connect (GTK_OBJECT (combo->list), "button-release-event", GTK_SIGNAL_FUNC (on_list_button_release), combo);
-    gtk_signal_connect (GTK_OBJECT (combo->list), "key-press-event", GTK_SIGNAL_FUNC (on_list_key_press), combo);
+    g_signal_connect (combo->list, "button-press-event", G_CALLBACK (on_list_button_press), combo);
+    g_signal_connect (combo->list, "button-release-event", G_CALLBACK (on_list_button_release), combo);
+    g_signal_connect (combo->list, "key-press-event", G_CALLBACK (on_list_key_press), combo);
 
     return GTK_WIDGET (combo);
 }
diff --git a/src/gnome-cmd-main-menu.cc b/src/gnome-cmd-main-menu.cc
index 88719f0..e739df5 100644
--- a/src/gnome-cmd-main-menu.cc
+++ b/src/gnome-cmd-main-menu.cc
@@ -1042,5 +1042,5 @@ void gnome_cmd_main_menu_add_plugin_menu (GnomeCmdMainMenu *main_menu, PluginDat
 {
     gtk_menu_shell_append (GTK_MENU_SHELL (GTK_MENU_ITEM (main_menu->priv->plugins_menu)->submenu), data->menu);
 
-    gtk_signal_connect (GTK_OBJECT (data->menu), "activate", GTK_SIGNAL_FUNC (on_plugin_menu_activate), data);
+    g_signal_connect (data->menu, "activate", G_CALLBACK (on_plugin_menu_activate), data);
 }



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