[gnome-photos] collection-icon-watcher: Remove the vfunc for the default handler



commit 1ca257635a56c8f0c72abbf7e0ec1d293c4cd352
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Oct 7 08:40:44 2016 +0200

    collection-icon-watcher: Remove the vfunc for the default handler
    
    This is a final class, so there wasn't going to be any sub-class that
    would want to override the default signal handler. We might still want
    a default handler for PhotosCollectionIconWatcher itself, but we can
    achieve the same effect with a simple private function. It is a small
    price to pay for being able to use G_DECLARE_FINAL_TYPE.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=763712

 src/photos-collection-icon-watcher.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/photos-collection-icon-watcher.c b/src/photos-collection-icon-watcher.c
index a12d43c..c153c57 100644
--- a/src/photos-collection-icon-watcher.c
+++ b/src/photos-collection-icon-watcher.c
@@ -56,9 +56,6 @@ struct _PhotosCollectionIconWatcher
 struct _PhotosCollectionIconWatcherClass
 {
   GObjectClass parent_class;
-
-  /* signals */
-  void (*icon_updated) (PhotosCollectionIconWatcher *self, GIcon *icon);
 };
 
 enum
@@ -479,8 +476,7 @@ photos_collection_icon_watcher_class_init (PhotosCollectionIconWatcherClass *cla
   signals[ICON_UPDATED] = g_signal_new ("icon-updated",
                                         G_TYPE_FROM_CLASS (class),
                                         G_SIGNAL_RUN_LAST,
-                                        G_STRUCT_OFFSET (PhotosCollectionIconWatcherClass,
-                                                         icon_updated),
+                                        0,
                                         NULL, /* accumulator */
                                         NULL, /* accu_data */
                                         g_cclosure_marshal_VOID__OBJECT,


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