[file-roller] Use headerbar in the test result dialog



commit 43e34e6f993f5a9d20c53363af9b2c4b5f4ba8fb
Author: Yosef Or Boczko <yoseforb src gnome org>
Date:   Wed Mar 26 03:09:02 2014 +0200

    Use headerbar in the test result dialog
    
    https://bugzilla.gnome.org/show_bug.cgi?id=727063

 src/fr-window.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index dd288db..a71d3c7 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -7714,11 +7714,12 @@ fr_window_view_last_output (FrWindow   *window,
        if (title == NULL)
                title = _("Last Output");
 
-       dialog = gtk_dialog_new_with_buttons (title,
-                                             GTK_WINDOW (window),
-                                             GTK_DIALOG_DESTROY_WITH_PARENT,
-                                             _GTK_LABEL_CLOSE, GTK_RESPONSE_CLOSE,
-                                             NULL);
+       dialog = g_object_new (GTK_TYPE_DIALOG,
+                              "title", title,
+                              "transient-for", window,
+                              "destroy-with-parent", TRUE,
+                              "use-header-bar", TRUE,
+                              NULL);
        gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CLOSE);
        gtk_window_set_resizable (GTK_WINDOW (dialog), TRUE);
        gtk_widget_set_size_request (dialog, 500, 300);


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