[gnome-photos] properties-dialog: Remove the vfunc for the default handler



commit b45d626b4141b7d5c41d903599d364aa7fc178ac
Author: Umang Jain <mailumangjain gmail com>
Date:   Wed Sep 6 00:48:34 2017 +0530

    properties-dialog: 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 PhotosPropertiesDialog 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-properties-dialog.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/photos-properties-dialog.c b/src/photos-properties-dialog.c
index 6e8c81f..b0caf22 100644
--- a/src/photos-properties-dialog.c
+++ b/src/photos-properties-dialog.c
@@ -62,9 +62,6 @@ struct _PhotosPropertiesDialog
 struct _PhotosPropertiesDialogClass
 {
   GtkDialogClass parent_class;
-
-  /* signals */
-  void (*discard_all_edits) (PhotosPropertiesDialog *self);
 };
 
 enum
@@ -880,7 +877,7 @@ photos_properties_dialog_class_init (PhotosPropertiesDialogClass *class)
   signals[DISCARD_ALL_EDITS] = g_signal_new ("discard-all-edits",
                                              G_TYPE_FROM_CLASS (class),
                                              G_SIGNAL_RUN_LAST,
-                                             G_STRUCT_OFFSET (PhotosPropertiesDialogClass, 
discard_all_edits),
+                                             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]