[gnome-commander/gcmd-1-3] Replacing obsoleted gtk_signal_connect() with g_signal_connect()
- From: Piotr Eljasiak <epiotr src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-commander/gcmd-1-3] Replacing obsoleted gtk_signal_connect() with g_signal_connect()
- Date: Wed, 1 Jul 2009 17:19:21 +0000 (UTC)
commit 85e78097e14a6e9908d8ab9064acbd827aac9483
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Wed Jul 1 19:04:44 2009 +0200
Replacing obsoleted gtk_signal_connect() with g_signal_connect()
src/gnome-cmd-chmod-component.cc | 3 +--
src/gnome-cmd-chmod-dialog.cc | 6 ++----
src/gnome-cmd-file-popmenu.cc | 2 +-
src/gnome-cmd-file-props-dialog.cc | 2 +-
src/gnome-cmd-main-win.cc | 16 ++++++++--------
src/gnome-cmd-remote-dialog.cc | 2 +-
src/gnome-cmd-search-dialog.cc | 2 +-
7 files changed, 15 insertions(+), 18 deletions(-)
---
diff --git a/src/gnome-cmd-chmod-component.cc b/src/gnome-cmd-chmod-component.cc
index 7abc63f..45d6639 100644
--- a/src/gnome-cmd-chmod-component.cc
+++ b/src/gnome-cmd-chmod-component.cc
@@ -137,8 +137,7 @@ static void init (GnomeCmdChmodComponent *comp)
for (gint x=0; x<3; x++)
{
comp->priv->check_boxes[y][x] = create_check (GTK_WIDGET (comp), check_text[x], "check");
- gtk_signal_connect (GTK_OBJECT (comp->priv->check_boxes[y][x]), "toggled",
- GTK_SIGNAL_FUNC (on_check_toggled), comp);
+ g_signal_connect (comp->priv->check_boxes[y][x], "toggled", G_CALLBACK (on_check_toggled), comp);
table_add (GTK_WIDGET (table), comp->priv->check_boxes[y][x], x+1, y, GTK_FILL);
}
}
diff --git a/src/gnome-cmd-chmod-dialog.cc b/src/gnome-cmd-chmod-dialog.cc
index 781b9c5..7cbdeef 100644
--- a/src/gnome-cmd-chmod-dialog.cc
+++ b/src/gnome-cmd-chmod-dialog.cc
@@ -225,10 +225,8 @@ static void init (GnomeCmdChmodDialog *dialog)
gnome_cmd_dialog_add_button (GNOME_CMD_DIALOG (dialog), GTK_STOCK_OK,
GTK_SIGNAL_FUNC (on_ok), dialog);
- gtk_signal_connect (GTK_OBJECT (dialog->priv->recurse_check), "toggled",
- GTK_SIGNAL_FUNC (on_toggle_recurse), chmod_dialog);
- gtk_signal_connect (GTK_OBJECT (dialog->priv->chmod_component), "perms-changed",
- GTK_SIGNAL_FUNC (on_perms_changed), chmod_dialog);
+ g_signal_connect (dialog->priv->recurse_check, "toggled", G_CALLBACK (on_toggle_recurse), chmod_dialog);
+ g_signal_connect (dialog->priv->chmod_component, "perms-changed", G_CALLBACK (on_perms_changed), chmod_dialog);
}
diff --git a/src/gnome-cmd-file-popmenu.cc b/src/gnome-cmd-file-popmenu.cc
index 6fa8752..f0a530c 100644
--- a/src/gnome-cmd-file-popmenu.cc
+++ b/src/gnome-cmd-file-popmenu.cc
@@ -244,7 +244,7 @@ static void add_fav_app_menu_item (GnomeCmdFilePopmenu *menu, GnomeCmdApp *app,
// Connect to the signal and set user data
gtk_object_set_data (GTK_OBJECT (item), GNOMEUIINFO_KEY_UIDATA, data);
- gtk_signal_connect (GTK_OBJECT (item), "activate", GTK_SIGNAL_FUNC (cb_exec_with_app), data);
+ g_signal_connect (item, "activate", G_CALLBACK (cb_exec_with_app), data);
}
diff --git a/src/gnome-cmd-file-props-dialog.cc b/src/gnome-cmd-file-props-dialog.cc
index 4d95b28..1a3d982 100644
--- a/src/gnome-cmd-file-props-dialog.cc
+++ b/src/gnome-cmd-file-props-dialog.cc
@@ -661,7 +661,7 @@ GtkWidget *gnome_cmd_file_props_dialog_create (GnomeCmdFile *f)
// data->thread = 0;
GtkWidget *dialog = gnome_cmd_dialog_new (_("File Properties"));
- gtk_signal_connect (GTK_OBJECT (dialog), "destroy", (GtkSignalFunc) on_dialog_destroy, data);
+ g_signal_connect (dialog, "destroy", G_CALLBACK (on_dialog_destroy), data);
gtk_window_set_resizable(GTK_WINDOW (dialog), TRUE);
GtkWidget *notebook = gtk_notebook_new ();
diff --git a/src/gnome-cmd-main-win.cc b/src/gnome-cmd-main-win.cc
index 2a3c9d9..aecf3c2 100644
--- a/src/gnome-cmd-main-win.cc
+++ b/src/gnome-cmd-main-win.cc
@@ -444,14 +444,14 @@ static void create_buttonbar (GnomeCmdMainWin *mw)
gtk_box_pack_start (GTK_BOX (mw->priv->buttonbar), create_separator (TRUE), FALSE, TRUE, 0);
mw->priv->quit_btn = add_buttonbar_button(_("F10 Quit"), main_win, "quit_btn", mw->priv->accel_group, 0);
- gtk_signal_connect (GTK_OBJECT (mw->priv->view_btn), "clicked", GTK_SIGNAL_FUNC (on_view_clicked), mw);
- gtk_signal_connect (GTK_OBJECT (mw->priv->edit_btn), "clicked", GTK_SIGNAL_FUNC (on_edit_clicked), mw);
- gtk_signal_connect (GTK_OBJECT (mw->priv->copy_btn), "clicked", GTK_SIGNAL_FUNC (on_copy_clicked), mw);
- gtk_signal_connect (GTK_OBJECT (mw->priv->move_btn), "clicked", GTK_SIGNAL_FUNC (on_move_clicked), mw);
- gtk_signal_connect (GTK_OBJECT (mw->priv->mkdir_btn), "clicked", GTK_SIGNAL_FUNC (on_mkdir_clicked), mw);
- gtk_signal_connect (GTK_OBJECT (mw->priv->delete_btn), "clicked", GTK_SIGNAL_FUNC (on_delete_clicked), mw);
- gtk_signal_connect (GTK_OBJECT (mw->priv->find_btn), "clicked", GTK_SIGNAL_FUNC (on_search_clicked), mw);
- gtk_signal_connect (GTK_OBJECT (mw->priv->quit_btn), "clicked", GTK_SIGNAL_FUNC (on_quit_clicked), mw);
+ g_signal_connect (G_OBJECT (mw->priv->view_btn), "clicked", G_CALLBACK (on_view_clicked), mw);
+ g_signal_connect (G_OBJECT (mw->priv->edit_btn), "clicked", G_CALLBACK (on_edit_clicked), mw);
+ g_signal_connect (G_OBJECT (mw->priv->copy_btn), "clicked", G_CALLBACK (on_copy_clicked), mw);
+ g_signal_connect (G_OBJECT (mw->priv->move_btn), "clicked", G_CALLBACK (on_move_clicked), mw);
+ g_signal_connect (G_OBJECT (mw->priv->mkdir_btn), "clicked", G_CALLBACK (on_mkdir_clicked), mw);
+ g_signal_connect (G_OBJECT (mw->priv->delete_btn), "clicked", G_CALLBACK (on_delete_clicked), mw);
+ g_signal_connect (G_OBJECT (mw->priv->find_btn), "clicked", G_CALLBACK (on_search_clicked), mw);
+ g_signal_connect (G_OBJECT (mw->priv->quit_btn), "clicked", G_CALLBACK (on_quit_clicked), mw);
}
diff --git a/src/gnome-cmd-remote-dialog.cc b/src/gnome-cmd-remote-dialog.cc
index 3f92f08..6db6170 100644
--- a/src/gnome-cmd-remote-dialog.cc
+++ b/src/gnome-cmd-remote-dialog.cc
@@ -498,7 +498,7 @@ static void init (GnomeCmdRemoteDialog *ftp_dialog)
ftp_dialog->priv->connect_button = button;
gtk_widget_set_sensitive (button, !empty_view);
- gtk_signal_connect (GTK_OBJECT (ftp_dialog->priv->connection_list), "row-activated", GTK_SIGNAL_FUNC (on_list_row_activated), dialog);
+ g_signal_connect (ftp_dialog->priv->connection_list, "row-activated", G_CALLBACK (on_list_row_activated), dialog);
GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (ftp_dialog->priv->connection_list));
diff --git a/src/gnome-cmd-search-dialog.cc b/src/gnome-cmd-search-dialog.cc
index 57223da..a049a5b 100644
--- a/src/gnome-cmd-search-dialog.cc
+++ b/src/gnome-cmd-search-dialog.cc
@@ -929,7 +929,7 @@ static void init (GnomeCmdSearchDialog *dialog)
g_signal_connect (G_OBJECT (dialog), "size-allocate", G_CALLBACK (on_dialog_size_allocate), NULL);
g_signal_connect (G_OBJECT (dialog->priv->result_list), "key-press-event", G_CALLBACK (on_list_keypressed), dialog);
- gtk_signal_connect (GTK_OBJECT (dialog->priv->find_text_check), "toggled", GTK_SIGNAL_FUNC (find_text_toggled), dialog);
+ g_signal_connect (dialog->priv->find_text_check, "toggled", G_CALLBACK (find_text_toggled), dialog);
gtk_window_set_keep_above (GTK_WINDOW (dialog), FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]