[almanah] UI: Preferences window, transient for main window



commit 3c0e5b5543f955692adbf7d78a4960a3e3c3be84
Author: Álvaro Peña <alvaropg gmail com>
Date:   Mon Jun 15 15:29:38 2015 +0200

    UI: Preferences window, transient for main window
    
    See https://bugzilla.gnome.org/show_bug.cgi?id=750987

 src/application.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/application.c b/src/application.c
index de6f794..b350475 100644
--- a/src/application.c
+++ b/src/application.c
@@ -446,6 +446,7 @@ action_preferences_cb (GSimpleAction *action, GVariant *parameter, gpointer user
        application = ALMANAH_APPLICATION (user_data);
        settings = almanah_application_dup_settings (application);
        dialog = almanah_preferences_dialog_new (settings);
+       gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (application->priv->main_window));
        g_object_unref (settings);
 
        gtk_widget_show_all (GTK_WIDGET (dialog));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]