[gnome-photos] selection-controller: Remove the vfunc for the default handler



commit 398506b0d9b290338c58d7ddcafcea306fb28226
Author: Umang Jain <mailumangjain gmail com>
Date:   Tue Sep 5 23:42:17 2017 +0530

    selection-controller: 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 PhotosSelectionController 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-selection-controller.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/photos-selection-controller.c b/src/photos-selection-controller.c
index 56a88cb..d4746b0 100644
--- a/src/photos-selection-controller.c
+++ b/src/photos-selection-controller.c
@@ -46,8 +46,6 @@ struct _PhotosSelectionController
 struct _PhotosSelectionControllerClass
 {
   GObjectClass parent_class;
-
-  void (*selection_changed)      (PhotosSelectionController *self);
 };
 
 enum
@@ -158,8 +156,7 @@ photos_selection_controller_class_init (PhotosSelectionControllerClass *class)
   signals[SELECTION_CHANGED] = g_signal_new ("selection-changed",
                                              G_TYPE_FROM_CLASS (class),
                                              G_SIGNAL_RUN_LAST,
-                                             G_STRUCT_OFFSET (PhotosSelectionControllerClass,
-                                                              selection_changed),
+                                             0,
                                              NULL, /*accumulator */
                                              NULL, /*accu_data */
                                              g_cclosure_marshal_VOID__VOID,


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