[gnome-photos] edit-palette: Remove the pointer for the object method signal handler



commit 7e073241c4f36124ed8be7754359d423f2c17262
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Nov 18 16:18:04 2016 +0100

    edit-palette: Remove the pointer for the object method signal 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 PhotosApplication 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-edit-palette.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/photos-edit-palette.c b/src/photos-edit-palette.c
index 264c05b..e794124 100644
--- a/src/photos-edit-palette.c
+++ b/src/photos-edit-palette.c
@@ -39,9 +39,6 @@ struct _PhotosEditPalette
 struct _PhotosEditPaletteClass
 {
   GtkListBoxClass parent_class;
-
-  /* signals */
-  void        (*tool_changed)       (PhotosEditPalette *self, PhotosTool *tool);
 };
 
 enum
@@ -137,7 +134,7 @@ photos_edit_palette_class_init (PhotosEditPaletteClass *class)
   signals[TOOL_CHANGED] = g_signal_new ("tool-changed",
                                         G_TYPE_FROM_CLASS (class),
                                         G_SIGNAL_RUN_LAST,
-                                        G_STRUCT_OFFSET (PhotosEditPaletteClass, tool_changed),
+                                        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]