From fe1293d4638cad15b56f7df334fbbdf2ef35ae43 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 12 Oct 2017 15:04:44 -0400 Subject: MqFindToolbar: Move static method definitions --- (limited to 'src/find-toolbar.c') diff --git a/src/find-toolbar.c b/src/find-toolbar.c index 1a875b9..b011d92 100644 --- a/src/find-toolbar.c +++ b/src/find-toolbar.c @@ -50,44 +50,6 @@ struct _MqFindToolbarClass { G_DEFINE_TYPE(MqFindToolbar, mq_find_toolbar, GTK_TYPE_REVEALER) static void -get_property(GObject *object, guint property_id, GValue *value, - GParamSpec *pspec) -{ - MqFindToolbar *find_toolbar; - - find_toolbar = MQ_FIND_TOOLBAR(object); - - switch (property_id) { - case PROP_WEB_VIEW: - g_value_set_object(value, find_toolbar->web_view); - break; - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, - pspec); - break; - } -} - -static void -set_property(GObject *object, guint property_id, const GValue *value, - GParamSpec *pspec) -{ - MqFindToolbar *find_toolbar; - - find_toolbar = MQ_FIND_TOOLBAR(object); - - switch (property_id) { - case PROP_WEB_VIEW: - find_toolbar->web_view = g_value_get_object(value); - break; - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, - pspec); - break; - } -} - -static void search(MqFindToolbar *find_toolbar, gboolean forward) { guint32 find_options; @@ -245,6 +207,44 @@ dispose(GObject *object) } static void +get_property(GObject *object, guint property_id, GValue *value, + GParamSpec *pspec) +{ + MqFindToolbar *find_toolbar; + + find_toolbar = MQ_FIND_TOOLBAR(object); + + switch (property_id) { + case PROP_WEB_VIEW: + g_value_set_object(value, find_toolbar->web_view); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, + pspec); + break; + } +} + +static void +set_property(GObject *object, guint property_id, const GValue *value, + GParamSpec *pspec) +{ + MqFindToolbar *find_toolbar; + + find_toolbar = MQ_FIND_TOOLBAR(object); + + switch (property_id) { + case PROP_WEB_VIEW: + find_toolbar->web_view = g_value_get_object(value); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, + pspec); + break; + } +} + +static void mq_find_toolbar_class_init(MqFindToolbarClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); -- cgit v0.9.1