Commit 3e0856ac authored by Cosimo Cecchi's avatar Cosimo Cecchi

bookmarks-window: set as transient for the parent window

And make it center on the parent too.
parent dab48b5e
......@@ -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,
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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment