[gnome-commander] intviewer: replacing obsoleted gtk_signal_new() with g_signal_new() 3/3



commit 6c2d4cbb14bd17be76a4d8c4b8b42a9477e0b156
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Sat Jan 22 23:57:21 2011 +0100

    intviewer: replacing obsoleted gtk_signal_new() with g_signal_new() 3/3

 src/intviewer/image-render.cc |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/intviewer/image-render.cc b/src/intviewer/image-render.cc
index d9491b3..2584fb3 100644
--- a/src/intviewer/image-render.cc
+++ b/src/intviewer/image-render.cc
@@ -228,14 +228,14 @@ static void image_render_class_init (ImageRenderClass *klass)
     widget_class->realize = image_render_realize;
 
     image_render_signals[IMAGE_STATUS_CHANGED] =
-        gtk_signal_new ("image-status-changed",
-            GTK_RUN_LAST,
-            G_OBJECT_CLASS_TYPE (object_class),
-            GTK_SIGNAL_OFFSET (ImageRenderClass, image_status_changed),
-            gtk_marshal_NONE__POINTER,
-            GTK_TYPE_NONE,
-            1, GTK_TYPE_POINTER);
-
+        g_signal_new ("image-status-changed",
+            G_TYPE_FROM_CLASS (klass),
+            G_SIGNAL_RUN_LAST,
+            G_STRUCT_OFFSET (ImageRenderClass, image_status_changed),
+            NULL, NULL,
+            g_cclosure_marshal_VOID__POINTER,
+            G_TYPE_NONE,
+            1, G_TYPE_POINTER);
 }
 
 
@@ -331,7 +331,7 @@ void image_render_notify_status_changed (ImageRender *w)
         stat.bits_per_sample = gdk_pixbuf_get_bits_per_sample(w->priv->orig_pixbuf);
     }
 
-    gtk_signal_emit (GTK_OBJECT(w), image_render_signals[IMAGE_STATUS_CHANGED], &stat);
+    g_signal_emit (w, image_render_signals[IMAGE_STATUS_CHANGED], 0, &stat);
 }
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]