summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-02-24 15:40:12 +0100
committerLuke from DC <[email protected]>2021-02-26 20:00:47 +0000
commit11c5acab3c7d90be0d839e135f9f196a3e90d194 (patch)
tree7c5e4088d6c6c77d8861153139879009286be38c
parentd06135111f8ebe5572b1ed9c01f6c04378a1d6d3 (diff)
downloadmate-control-center-11c5acab3c7d90be0d839e135f9f196a3e90d194.tar.bz2
mate-control-center-11c5acab3c7d90be0d839e135f9f196a3e90d194.tar.xz
bookmark-agent: Function 'bookmark_agent_new' used prior to declaration
-rw-r--r--libslab/bookmark-agent.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/libslab/bookmark-agent.c b/libslab/bookmark-agent.c
index 146b9ff6..29df9247 100644
--- a/libslab/bookmark-agent.c
+++ b/libslab/bookmark-agent.c
@@ -148,22 +148,6 @@ bookmark_agent_get_type ()
return g_define_type_id;
}
-BookmarkAgent *
-bookmark_agent_get_instance (BookmarkStoreType type)
-{
- g_return_val_if_fail (0 <= type, NULL);
- g_return_val_if_fail (type < BOOKMARK_STORE_N_TYPES, NULL);
-
- if (! instances [type]) {
- instances [type] = bookmark_agent_new (type);
- g_object_weak_ref (G_OBJECT (instances [type]), weak_destroy_cb, GINT_TO_POINTER (type));
- }
- else
- g_object_ref (G_OBJECT (instances [type]));
-
- return instances [type];
-}
-
gboolean
bookmark_agent_has_item (BookmarkAgent *this, const gchar *uri)
{
@@ -562,6 +546,22 @@ bookmark_agent_new (BookmarkStoreType type)
return this;
}
+BookmarkAgent *
+bookmark_agent_get_instance (BookmarkStoreType type)
+{
+ g_return_val_if_fail (0 <= type, NULL);
+ g_return_val_if_fail (type < BOOKMARK_STORE_N_TYPES, NULL);
+
+ if (! instances [type]) {
+ instances [type] = bookmark_agent_new (type);
+ g_object_weak_ref (G_OBJECT (instances [type]), weak_destroy_cb, GINT_TO_POINTER (type));
+ }
+ else
+ g_object_ref (G_OBJECT (instances [type]));
+
+ return instances [type];
+}
+
static void
get_property (GObject *g_obj, guint prop_id, GValue *value, GParamSpec *pspec)
{