[gnome-commander] Replacing obsoleted gtk_signal_disconnect_by_func() with g_signal_handlers_disconnect_by_func()
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Replacing obsoleted gtk_signal_disconnect_by_func() with g_signal_handlers_disconnect_by_func()
- Date: Fri, 10 Jun 2011 17:59:54 +0000 (UTC)
commit 701a69292766429e4350520d32ac668038bc9987
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Fri Jun 10 19:58:25 2011 +0200
Replacing obsoleted gtk_signal_disconnect_by_func() with g_signal_handlers_disconnect_by_func()
src/gnome-cmd-cmdline.cc | 6 +++---
src/gnome-cmd-con-list.cc | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/gnome-cmd-cmdline.cc b/src/gnome-cmd-cmdline.cc
index 529e582..7527f8a 100644
--- a/src/gnome-cmd-cmdline.cc
+++ b/src/gnome-cmd-cmdline.cc
@@ -187,9 +187,9 @@ static void on_fs_changed_dir (GnomeCmdFileSelector *fs, GnomeCmdDir *dir, Gnome
static void destroy (GtkObject *object)
{
- gtk_signal_disconnect_by_func (GTK_OBJECT (main_win), GTK_SIGNAL_FUNC (on_switch_fs), object);
- gtk_signal_disconnect_by_func (GTK_OBJECT (main_win->fs(LEFT)), GTK_SIGNAL_FUNC (on_fs_changed_dir), object);
- gtk_signal_disconnect_by_func (GTK_OBJECT (main_win->fs(RIGHT)), GTK_SIGNAL_FUNC (on_fs_changed_dir), object);
+ g_signal_handlers_disconnect_by_func (main_win, (gpointer) on_switch_fs, object);
+ g_signal_handlers_disconnect_by_func (main_win->fs(LEFT), (gpointer) on_fs_changed_dir, object);
+ g_signal_handlers_disconnect_by_func (main_win->fs(RIGHT), (gpointer) on_fs_changed_dir, object);
if (GTK_OBJECT_CLASS (parent_class)->destroy)
(*GTK_OBJECT_CLASS (parent_class)->destroy) (object);
diff --git a/src/gnome-cmd-con-list.cc b/src/gnome-cmd-con-list.cc
index 2758e93..bafcbf1 100644
--- a/src/gnome-cmd-con-list.cc
+++ b/src/gnome-cmd-con-list.cc
@@ -249,7 +249,7 @@ void gnome_cmd_con_list_remove_ftp (GnomeCmdConList *con_list, GnomeCmdConFtp *f
con_list->priv->all_cons = g_list_remove (con_list->priv->all_cons, ftp_con);
con_list->priv->ftp_cons = g_list_remove (con_list->priv->ftp_cons, ftp_con);
- gtk_signal_disconnect_by_func (GTK_OBJECT (ftp_con), GTK_SIGNAL_FUNC (on_con_updated), con_list);
+ g_signal_handlers_disconnect_by_func (ftp_con, (gpointer) on_con_updated, con_list);
if (!con_list->priv->update_lock)
{
@@ -297,7 +297,7 @@ void gnome_cmd_con_list_remove_quick_ftp (GnomeCmdConList *con_list, GnomeCmdCon
con_list->priv->all_cons = g_list_remove (con_list->priv->all_cons, ftp_con);
con_list->priv->quick_ftp_cons = g_list_remove (con_list->priv->quick_ftp_cons, ftp_con);
- gtk_signal_disconnect_by_func (GTK_OBJECT (ftp_con), GTK_SIGNAL_FUNC (on_con_updated), con_list);
+ g_signal_handlers_disconnect_by_func (ftp_con, (gpointer) on_con_updated, con_list);
if (!con_list->priv->update_lock)
{
@@ -343,7 +343,7 @@ void gnome_cmd_con_list_remove_device (GnomeCmdConList *con_list, GnomeCmdConDev
con_list->priv->all_cons = g_list_remove (con_list->priv->all_cons, device_con);
con_list->priv->device_cons = g_list_remove (con_list->priv->device_cons, device_con);
- gtk_signal_disconnect_by_func (GTK_OBJECT (device_con), GTK_SIGNAL_FUNC (on_con_updated), con_list);
+ g_signal_handlers_disconnect_by_func (device_con, (gpointer) on_con_updated, con_list);
if (!con_list->priv->update_lock)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]