[gnome-photos] application: Remove the pointer for the object method signal handler
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] application: Remove the pointer for the object method signal handler
- Date: Thu, 6 Oct 2016 09:33:54 +0000 (UTC)
commit 421f387b1b8262b11c4d088e13fdc2ab44483f63
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Oct 5 11:38:55 2016 +0200
application: 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-application.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index 356c912..3c414ae 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -121,9 +121,6 @@ struct _PhotosApplication
struct _PhotosApplicationClass
{
GtkApplicationClass parent_class;
-
- /* signals */
- void (*miners_changed) (PhotosApplication *self, GList *miners_running);
};
enum
@@ -1997,7 +1994,7 @@ photos_application_class_init (PhotosApplicationClass *class)
signals[MINERS_CHANGED] = g_signal_new ("miners-changed",
G_TYPE_FROM_CLASS (class),
G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (PhotosApplicationClass, miners_changed),
+ 0,
NULL, /* accumulator */
NULL, /* accu_data */
g_cclosure_marshal_VOID__POINTER,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]