diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2011-05-01 17:50:15 -0400 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2011-05-09 11:33:28 -0400 |
commit | a8f2c97e5f67fa1c309cf694f8ca00f5dc38abb9 (patch) | |
tree | 9b468b4876c7f8d8b45ee56253139809317e06bc /src/nautilus-previewer.c | |
parent | 71b8a7a8d66f0c927be9b7c12199d1472043ed66 (diff) | |
download | nautilus-a8f2c97e5f67fa1c309cf694f8ca00f5dc38abb9.tar.gz |
previewer: don't return a new ref to the singleton
It's easier to use this way, and we don't have to create a new DBus
proxy every time.
Diffstat (limited to 'src/nautilus-previewer.c')
-rw-r--r-- | src/nautilus-previewer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nautilus-previewer.c b/src/nautilus-previewer.c index f5358fd11..d0562e816 100644 --- a/src/nautilus-previewer.c +++ b/src/nautilus-previewer.c @@ -62,7 +62,7 @@ nautilus_previewer_constructor (GType type, GObject *retval; if (singleton != NULL) - return g_object_ref (singleton); + return G_OBJECT (singleton); retval = G_OBJECT_CLASS (nautilus_previewer_parent_class)->constructor (type, n_construct_params, construct_params); @@ -168,7 +168,7 @@ previewer_proxy_async_ready_cb (GObject *source, } NautilusPreviewer * -nautilus_previewer_dup_singleton (void) +nautilus_previewer_get_singleton (void) { return g_object_new (NAUTILUS_TYPE_PREVIEWER, NULL); } |