[nautilus] Add close_if_already_visible argument to nautilus_previewer_call_show_file
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Add close_if_already_visible argument to nautilus_previewer_call_show_file
- Date: Mon, 9 May 2011 19:09:21 +0000 (UTC)
commit 71b8a7a8d66f0c927be9b7c12199d1472043ed66
Author: Alexander Larsson <alexl redhat com>
Date: Fri Apr 29 17:51:44 2011 -0400
Add close_if_already_visible argument to nautilus_previewer_call_show_file
As per the changes in sushi
src/nautilus-previewer.c | 7 ++++---
src/nautilus-previewer.h | 3 ++-
src/nautilus-view.c | 2 +-
3 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/src/nautilus-previewer.c b/src/nautilus-previewer.c
index 398de92..f5358fd 100644
--- a/src/nautilus-previewer.c
+++ b/src/nautilus-previewer.c
@@ -176,12 +176,13 @@ nautilus_previewer_dup_singleton (void)
void
nautilus_previewer_call_show_file (NautilusPreviewer *self,
const gchar *uri,
- guint xid)
+ guint xid,
+ gboolean close_if_already_visible)
{
GVariant *variant;
- variant = g_variant_new ("(si)",
- uri, xid);
+ variant = g_variant_new ("(sib)",
+ uri, xid, close_if_already_visible);
g_object_ref (self);
if (self->priv->proxy == NULL) {
diff --git a/src/nautilus-previewer.h b/src/nautilus-previewer.h
index b5fbe05..82ab2f5 100644
--- a/src/nautilus-previewer.h
+++ b/src/nautilus-previewer.h
@@ -58,7 +58,8 @@ GType nautilus_previewer_get_type (void);
NautilusPreviewer *nautilus_previewer_dup_singleton (void);
void nautilus_previewer_call_show_file (NautilusPreviewer *previewer,
const gchar *uri,
- guint xid);
+ guint xid,
+ gboolean close_if_already_visible);
G_END_DECLS
diff --git a/src/nautilus-view.c b/src/nautilus-view.c
index 0001743..38fa7f7 100644
--- a/src/nautilus-view.c
+++ b/src/nautilus-view.c
@@ -1126,7 +1126,7 @@ nautilus_view_preview_files (NautilusView *view,
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);
+ nautilus_previewer_call_show_file (previewer, uri, xid, TRUE);
g_object_unref (previewer);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]