[nautilus] bookmarks-window: set as transient for the parent window
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] bookmarks-window: set as transient for the parent window
- Date: Tue, 21 Aug 2012 02:07:40 +0000 (UTC)
commit 3e0856acae7282dfe61186035e9466ce6fe99ee7
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Aug 21 04:04:21 2012 +0200
bookmarks-window: set as transient for the parent window
And make it center on the parent too.
src/nautilus-bookmarks-window.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-bookmarks-window.c b/src/nautilus-bookmarks-window.c
index a308e1a..37be459 100644
--- a/src/nautilus-bookmarks-window.c
+++ b/src/nautilus-bookmarks-window.c
@@ -704,13 +704,15 @@ nautilus_bookmarks_window_new (NautilusWindow *parent_window,
window = GTK_WINDOW (gtk_builder_get_object (builder, "bookmarks_dialog"));
- gtk_window_set_wmclass (window, "bookmarks", "Nautilus");
gtk_window_set_default_size (window,
BOOKMARKS_WINDOW_INITIAL_WIDTH,
BOOKMARKS_WINDOW_INITIAL_HEIGHT);
gtk_window_set_application (window,
gtk_window_get_application (GTK_WINDOW (parent_window)));
+
gtk_window_set_destroy_with_parent (window, TRUE);
+ gtk_window_set_transient_for (window, GTK_WINDOW (parent_window));
+ gtk_window_set_position (window, GTK_WIN_POS_CENTER_ON_PARENT);
g_signal_connect (window, "key-press-event",
G_CALLBACK (nautilus_bookmarks_window_key_press_event_cb), NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]