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-view.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-view.c')
-rw-r--r-- | src/nautilus-view.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nautilus-view.c b/src/nautilus-view.c index 38fa7f700..12bc53432 100644 --- a/src/nautilus-view.c +++ b/src/nautilus-view.c @@ -1121,14 +1121,12 @@ nautilus_view_preview_files (NautilusView *view, guint xid; GtkWidget *toplevel; - previewer = nautilus_previewer_dup_singleton (); + previewer = nautilus_previewer_get_singleton (); uri = nautilus_file_get_uri (files->data); toplevel = gtk_widget_get_toplevel (GTK_WIDGET (view)); xid = gdk_x11_window_get_xid (gtk_widget_get_window (toplevel)); nautilus_previewer_call_show_file (previewer, uri, xid, TRUE); - - g_object_unref (previewer); } void |