[gnome-photos] tracker-change-monitor: Remove the vfunc for the default handler



commit 66d268d3851a10886da7b1a5c609dfbdc918819b
Author: Umang Jain <mailumangjain gmail com>
Date:   Wed Sep 6 00:59:15 2017 +0530

    tracker-change-monitor: 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 PhotosTrackerChangeMonitor 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-tracker-change-monitor.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/photos-tracker-change-monitor.c b/src/photos-tracker-change-monitor.c
index 8eac40d..75b9fb2 100644
--- a/src/photos-tracker-change-monitor.c
+++ b/src/photos-tracker-change-monitor.c
@@ -50,9 +50,6 @@ struct _PhotosTrackerChangeMonitor
 struct _PhotosTrackerChangeMonitorClass
 {
   GObjectClass parent_class;
-
-  /* signals */
-  void (*changes_pending) (PhotosTrackerChangeMonitor *self, GHashTable *changes);
 };
 
 enum
@@ -418,7 +415,7 @@ photos_tracker_change_monitor_class_init (PhotosTrackerChangeMonitorClass *class
   signals[CHANGES_PENDING] = g_signal_new ("changes-pending",
                                            G_TYPE_FROM_CLASS (class),
                                            G_SIGNAL_RUN_LAST,
-                                           G_STRUCT_OFFSET (PhotosTrackerChangeMonitorClass, 
changes_pending),
+                                           0,
                                            NULL, /*accumulator */
                                            NULL, /*accu_data */
                                            g_cclosure_marshal_VOID__BOXED,


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