[nautilus] previewer: drop the x/y coordinates arguments
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] previewer: drop the x/y coordinates arguments
- Date: Mon, 9 May 2011 19:09:16 +0000 (UTC)
commit f087da3353074f7476a563ab62d5ac7cf0d65e41
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Apr 27 17:16:55 2011 -0400
previewer: drop the x/y coordinates arguments
src/nautilus-previewer.c | 8 +++-----
src/nautilus-previewer.h | 4 +---
src/nautilus-view.c | 14 ++------------
3 files changed, 6 insertions(+), 20 deletions(-)
---
diff --git a/src/nautilus-previewer.c b/src/nautilus-previewer.c
index 9c04254..398de92 100644
--- a/src/nautilus-previewer.c
+++ b/src/nautilus-previewer.c
@@ -176,14 +176,12 @@ nautilus_previewer_dup_singleton (void)
void
nautilus_previewer_call_show_file (NautilusPreviewer *self,
const gchar *uri,
- guint xid,
- guint x,
- guint y)
+ guint xid)
{
GVariant *variant;
- variant = g_variant_new ("(siii)",
- uri, xid, x, y);
+ variant = g_variant_new ("(si)",
+ uri, xid);
g_object_ref (self);
if (self->priv->proxy == NULL) {
diff --git a/src/nautilus-previewer.h b/src/nautilus-previewer.h
index 93a9903..b5fbe05 100644
--- a/src/nautilus-previewer.h
+++ b/src/nautilus-previewer.h
@@ -58,9 +58,7 @@ 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 x,
- guint y);
+ guint xid);
G_END_DECLS
diff --git a/src/nautilus-view.c b/src/nautilus-view.c
index 20b7935..0001743 100644
--- a/src/nautilus-view.c
+++ b/src/nautilus-view.c
@@ -1118,25 +1118,15 @@ nautilus_view_preview_files (NautilusView *view,
{
NautilusPreviewer *previewer;
gchar *uri;
- guint xid, x, y;
- GdkPoint location;
+ guint xid;
GtkWidget *toplevel;
previewer = nautilus_previewer_dup_singleton ();
uri = nautilus_file_get_uri (files->data);
toplevel = gtk_widget_get_toplevel (GTK_WIDGET (view));
- if (locations != NULL) {
- location = g_array_index (locations, GdkPoint, 0);
- x = location.x;
- y = location.y;
- } else {
- x = y = 0;
- }
-
xid = gdk_x11_window_get_xid (gtk_widget_get_window (toplevel));
-
- nautilus_previewer_call_show_file (previewer, uri, xid, x, y);
+ nautilus_previewer_call_show_file (previewer, uri, xid);
g_object_unref (previewer);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]