[mutter: 39/209] use g_signal_handlers_disconnect_by_func instead of an old deprecated
- From: Owen Taylor <otaylor src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [mutter: 39/209] use g_signal_handlers_disconnect_by_func instead of an old deprecated
- Date: Thu, 11 Feb 2010 17:24:36 +0000 (UTC)
commit a8f89706016486fa391c9d27450608e9e7d8e62d
Author: Thomas James Alexander Thurman <tthurman src gnome org>
Date: Thu Mar 12 01:16:52 2009 +0000
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
ChangeLog | 5 +++++
src/tools/metacity-mag.c | 22 ++++++----------------
2 files changed, 11 insertions(+), 16 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 3ffc620..9e8474c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-03-11 Matt Kraai <kraai ftfbs org>
+
+ * src/tools/metacity-mag.c: use g_signal_handlers_disconnect_by_func
+ instead of an old deprecated function.
+
2009-03-11 Ori Avtalion <ori avtalion name>
* src/core/window-props.c: fix problem where the previous
diff --git a/src/tools/metacity-mag.c b/src/tools/metacity-mag.c
index a5f1b1b..7c5cb3e 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]