summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas James Alexander Thurman <tthurman@src.gnome.org>2009-03-12 01:16:52 +0000
committerThomas James Alexander Thurman <tthurman@src.gnome.org>2009-03-12 01:16:52 +0000
commita8f89706016486fa391c9d27450608e9e7d8e62d (patch)
tree3c28abf4dee8a399fdd2a975c215c4a5c3aac04c /src
parent178b5ff626d747026fc9d03c7908c3f203fbd263 (diff)
downloadmetacity-a8f89706016486fa391c9d27450608e9e7d8e62d.tar.gz
use g_signal_handlers_disconnect_by_func instead of an old deprecated
* src/tools/metacity-mag.c: use g_signal_handlers_disconnect_by_func instead of an old deprecated function. svn path=/trunk/; revision=4192
Diffstat (limited to 'src')
-rw-r--r--src/tools/metacity-mag.c22
1 files changed, 6 insertions, 16 deletions
diff --git a/src/tools/metacity-mag.c b/src/tools/metacity-mag.c
index a5f1b1b2..7c5cb3e9 100644
--- a/src/tools/metacity-mag.c
+++ b/src/tools/metacity-mag.c
@@ -171,10 +171,8 @@ mouse_release (GtkWidget *invisible,
shutdown_grab ();
- gtk_signal_disconnect_by_func (GTK_OBJECT (invisible),
- GTK_SIGNAL_FUNC (mouse_motion), NULL);
- gtk_signal_disconnect_by_func (GTK_OBJECT (invisible),
- GTK_SIGNAL_FUNC (mouse_release), NULL);
+ g_signal_handlers_disconnect_by_func (invisible, mouse_motion, NULL);
+ g_signal_handlers_disconnect_by_func (invisible, mouse_release, NULL);
return TRUE;
}
@@ -194,12 +192,8 @@ key_press (GtkWidget *invisible,
{
shutdown_grab ();
- gtk_signal_disconnect_by_func (GTK_OBJECT (invisible),
- GTK_SIGNAL_FUNC (mouse_press),
- NULL);
- gtk_signal_disconnect_by_func (GTK_OBJECT (invisible),
- GTK_SIGNAL_FUNC (key_press),
- NULL);
+ g_signal_handlers_disconnect_by_func (invisible, mouse_press, NULL);
+ g_signal_handlers_disconnect_by_func (invisible, key_press, NULL);
return TRUE;
}
@@ -219,12 +213,8 @@ mouse_press (GtkWidget *invisible,
G_CALLBACK (mouse_motion), NULL);
g_signal_connect (invisible, "button_release_event",
G_CALLBACK (mouse_release), NULL);
- gtk_signal_disconnect_by_func (GTK_OBJECT (invisible),
- GTK_SIGNAL_FUNC (mouse_press),
- NULL);
- gtk_signal_disconnect_by_func (GTK_OBJECT (invisible),
- GTK_SIGNAL_FUNC (key_press),
- NULL);
+ g_signal_handlers_disconnect_by_func (invisible, mouse_press, NULL);
+ g_signal_handlers_disconnect_by_func (invisible, key_press, NULL);
return TRUE;
}