[file-roller] Use headerbar in the test result dialog
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] Use headerbar in the test result dialog
- Date: Sun, 27 Apr 2014 13:19:17 +0000 (UTC)
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]