[file-roller] fr-new-archive-dialog: respect gtk-dialogs-use-header
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] fr-new-archive-dialog: respect gtk-dialogs-use-header
- Date: Sun, 15 Feb 2015 12:00:25 +0000 (UTC)
commit 0f2dab08dc8c577a89a32aeaa1f2467dcaf8c949
Author: Iain Lane <iain lane canonical com>
Date: Thu Jan 8 16:44:53 2015 +0000
fr-new-archive-dialog: respect gtk-dialogs-use-header
https://bugzilla.gnome.org/show_bug.cgi?id=741925
src/fr-new-archive-dialog.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/fr-new-archive-dialog.c b/src/fr-new-archive-dialog.c
index 5f73669..84acb35 100644
--- a/src/fr-new-archive-dialog.c
+++ b/src/fr-new-archive-dialog.c
@@ -309,8 +309,13 @@ fr_new_archive_dialog_new (const char *title,
GFile *original_file)
{
FrNewArchiveDialog *self;
+ gboolean use_header;
- self = g_object_new (FR_TYPE_NEW_ARCHIVE_DIALOG, "title", title, "use-header-bar", TRUE, NULL);
+ g_object_get (gtk_settings_get_default (),
+ "gtk-dialogs-use-header", &use_header,
+ NULL);
+
+ self = g_object_new (FR_TYPE_NEW_ARCHIVE_DIALOG, "title", title, "use-header-bar", use_header, NULL);
_fr_new_archive_dialog_construct (self, parent, action, folder, default_name, original_file);
return (GtkWidget *) self;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]