[gnome-commander] Replacing obsoleted gtk_signal_connect() with g_signal_connect()
- From: Piotr Eljasiak <epiotr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-commander] Replacing obsoleted gtk_signal_connect() with g_signal_connect()
- Date: Fri, 25 Sep 2009 21:53:37 +0000 (UTC)
commit 922df9138051a60b933ddee94a5ff8520d0190de
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Fri Sep 25 23:45:48 2009 +0200
Replacing obsoleted gtk_signal_connect() with g_signal_connect()
src/gnome-cmd-main-menu.cc | 14 ++++++--------
1 files changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/src/gnome-cmd-main-menu.cc b/src/gnome-cmd-main-menu.cc
index b0d4077..dec2248 100644
--- a/src/gnome-cmd-main-menu.cc
+++ b/src/gnome-cmd-main-menu.cc
@@ -199,7 +199,7 @@ static GtkWidget *create_menu_item (GnomeCmdMainMenu *main_menu, GtkMenu *parent
case MENU_TYPE_TOGGLEITEM:
item = gtk_check_menu_item_new_with_label (spec->label);
- gtk_signal_connect (GTK_OBJECT (item), "toggled", GTK_SIGNAL_FUNC (spec->moreinfo), spec->user_data);
+ g_signal_connect (item, "toggled", G_CALLBACK (spec->moreinfo), spec->user_data);
break;
case MENU_TYPE_SEPARATOR:
@@ -217,9 +217,8 @@ static GtkWidget *create_menu_item (GnomeCmdMainMenu *main_menu, GtkMenu *parent
if (spec->type == MENU_TYPE_ITEM)
{
// Connect to the signal and set user data
- gtk_object_set_data (GTK_OBJECT (item), GNOMEUIINFO_KEY_UIDATA, spec->user_data);
-
- gtk_signal_connect (GTK_OBJECT (item), "activate", GTK_SIGNAL_FUNC (spec->moreinfo), spec->user_data);
+ g_object_set_data (G_OBJECT (item), GNOMEUIINFO_KEY_UIDATA, spec->user_data);
+ g_signal_connect (item, "activate", G_CALLBACK (spec->moreinfo), spec->user_data);
}
spec->widget = item;
@@ -291,8 +290,8 @@ add_menu_item (GnomeCmdMainMenu *main_menu,
// Connect to the signal and set user data
if (callback)
{
- gtk_object_set_data (GTK_OBJECT (item), GNOMEUIINFO_KEY_UIDATA, user_data);
- gtk_signal_connect (GTK_OBJECT (item), "activate", callback, user_data);
+ g_object_set_data (G_OBJECT (item), GNOMEUIINFO_KEY_UIDATA, user_data);
+ g_signal_connect (item, "activate", callback, user_data);
}
return item;
@@ -875,8 +874,7 @@ static void init (GnomeCmdMainMenu *main_menu)
GTK_CHECK_MENU_ITEM (main_menu->priv->menu_view_backup_files),
!gnome_cmd_data.filter_settings.backup);
- gtk_signal_connect (GTK_OBJECT (gnome_cmd_con_list_get ()), "list-changed",
- GTK_SIGNAL_FUNC (on_con_list_list_changed), main_menu);
+ g_signal_connect (gnome_cmd_con_list_get (), "list-changed", G_CALLBACK (on_con_list_list_changed), main_menu);
gnome_cmd_main_menu_update_bookmarks (main_menu);
gnome_cmd_main_menu_update_connections (main_menu);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]