[gnome-commander] Replacing obsoleted gtk_signal_disconnect_by_data() with g_signal_handlers_disconnect_matched()
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Replacing obsoleted gtk_signal_disconnect_by_data() with g_signal_handlers_disconnect_matched()
- Date: Fri, 10 Jun 2011 19:59:21 +0000 (UTC)
commit 684f78eac9cf553fb05e1ef59d17459406ba01ee
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Fri Jun 10 21:57:03 2011 +0200
Replacing obsoleted gtk_signal_disconnect_by_data() with g_signal_handlers_disconnect_matched()
src/intviewer/image-render.cc | 4 ++--
src/intviewer/text-render.cc | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/intviewer/image-render.cc b/src/intviewer/image-render.cc
index 325acdd..3e51e5b 100644
--- a/src/intviewer/image-render.cc
+++ b/src/intviewer/image-render.cc
@@ -152,7 +152,7 @@ void image_render_set_h_adjustment (ImageRender *obj, GtkAdjustment *adjustment)
if (obj->priv->h_adjustment)
{
- gtk_signal_disconnect_by_data (GTK_OBJECT (obj->priv->h_adjustment), (gpointer) obj);
+ g_signal_handlers_disconnect_matched (obj->priv->h_adjustment, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, obj);
g_object_unref (obj->priv->h_adjustment);
}
@@ -181,7 +181,7 @@ void image_render_set_v_adjustment (ImageRender *obj, GtkAdjustment *adjustment)
if (obj->priv->v_adjustment)
{
- gtk_signal_disconnect_by_data (GTK_OBJECT (obj->priv->v_adjustment), (gpointer) obj);
+ g_signal_handlers_disconnect_matched (obj->priv->v_adjustment, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, obj);
g_object_unref (obj->priv->v_adjustment);
}
diff --git a/src/intviewer/text-render.cc b/src/intviewer/text-render.cc
index 297d55e..c32e4d1 100644
--- a/src/intviewer/text-render.cc
+++ b/src/intviewer/text-render.cc
@@ -205,7 +205,7 @@ void text_render_set_h_adjustment (TextRender *obj, GtkAdjustment *adjustment)
if (obj->priv->h_adjustment)
{
- gtk_signal_disconnect_by_data (GTK_OBJECT (obj->priv->h_adjustment), (gpointer) obj);
+ g_signal_handlers_disconnect_matched (obj->priv->h_adjustment, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, obj);
g_object_unref (obj->priv->h_adjustment);
}
@@ -229,7 +229,7 @@ void text_render_set_v_adjustment (TextRender *obj, GtkAdjustment *adjustment)
if (obj->priv->v_adjustment)
{
- gtk_signal_disconnect_by_data (GTK_OBJECT (obj->priv->v_adjustment), (gpointer) obj);
+ g_signal_handlers_disconnect_matched (obj->priv->v_adjustment, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, obj);
g_object_unref (obj->priv->v_adjustment);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]