[gnome-photos] search-controller: Remove the vfunc for the default handler
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] search-controller: Remove the vfunc for the default handler
- Date: Mon, 18 Sep 2017 13:06:12 +0000 (UTC)
commit 09bc8dcddb2cd9fd3bdd3065b5e66a8c26fd4bc3
Author: Umang Jain <mailumangjain gmail com>
Date: Wed Sep 6 00:29:46 2017 +0530
search-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 PhotosSearchController 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-search-controller.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/photos-search-controller.c b/src/photos-search-controller.c
index 93b8017..532c9b3 100644
--- a/src/photos-search-controller.c
+++ b/src/photos-search-controller.c
@@ -40,9 +40,6 @@ struct _PhotosSearchController
struct _PhotosSearchControllerClass
{
GObjectClass parent_class;
-
- /* signals */
- void (*search_string_changed) (PhotosSearchController *self, const gchar *str);
};
enum
@@ -85,8 +82,7 @@ photos_search_controller_class_init (PhotosSearchControllerClass *class)
signals[SEARCH_STRING_CHANGED] = g_signal_new ("search-string-changed",
G_TYPE_FROM_CLASS (class),
G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (PhotosSearchControllerClass,
- search_string_changed),
+ 0,
NULL, /*accumulator */
NULL, /*accu_data */
g_cclosure_marshal_VOID__STRING,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]