[nautilus] window: open detached tab windows at mouse position
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] window: open detached tab windows at mouse position
- Date: Mon, 17 Sep 2012 16:17:15 +0000 (UTC)
commit 7eac61a5b9051a48f6b3ac13cf2fd0f161701163
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Sep 17 12:14:30 2012 -0400
window: open detached tab windows at mouse position
Instead of using the default WM window position, since it's a DnD
operation.
src/nautilus-window.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index f7606e4..13408fc 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -1121,6 +1121,8 @@ notebook_create_window_cb (GtkNotebook *notebook,
g_object_set_data (G_OBJECT (slot), "dnd-window-slot",
GINT_TO_POINTER (TRUE));
+ gtk_window_set_position (GTK_WINDOW (new_window), GTK_WIN_POS_MOUSE);
+
return GTK_NOTEBOOK (new_window->details->notebook);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]