diff options
author | William Jon McCann <william.jon.mccann@gmail.com> | 2014-01-10 16:17:47 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-01-17 17:52:08 -0500 |
commit | 066810ac0039436c26a2dc93f18a2ccc9fdb3c0c (patch) | |
tree | 6726b85dcb1764d14cd0adef63a64fa3ebb87156 /gtk/gtkrecentchooserdialog.c | |
parent | bf14a334f4bf15474a533440f75d3a3655793fcd (diff) | |
download | gtk+-066810ac0039436c26a2dc93f18a2ccc9fdb3c0c.tar.gz |
recent chooser dialog: Use headerbar
Make the recent chooser dialog use a headerbar
when desired.
https://bugzilla.gnome.org/show_bug.cgi?id=720059
Diffstat (limited to 'gtk/gtkrecentchooserdialog.c')
-rw-r--r-- | gtk/gtkrecentchooserdialog.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/gtkrecentchooserdialog.c b/gtk/gtkrecentchooserdialog.c index da9bb1b174..181bff5bb7 100644 --- a/gtk/gtkrecentchooserdialog.c +++ b/gtk/gtkrecentchooserdialog.c @@ -23,6 +23,8 @@ #include "gtkrecentchooserutils.h" #include "gtkrecentmanager.h" #include "gtktypebuiltins.h" +#include "gtksettings.h" +#include "gtkdialogprivate.h" #include <stdarg.h> @@ -127,6 +129,7 @@ gtk_recent_chooser_dialog_init (GtkRecentChooserDialog *dialog) priv = gtk_recent_chooser_dialog_get_instance_private (dialog); dialog->priv = priv; + gtk_dialog_set_use_header_bar_from_setting (GTK_DIALOG (dialog)); content_area = gtk_dialog_get_content_area (rc_dialog); G_GNUC_BEGIN_IGNORE_DEPRECATIONS @@ -136,7 +139,6 @@ G_GNUC_END_IGNORE_DEPRECATIONS gtk_container_set_border_width (GTK_CONTAINER (rc_dialog), 5); gtk_box_set_spacing (GTK_BOX (content_area), 2); /* 2 * 5 + 2 = 12 */ gtk_container_set_border_width (GTK_CONTAINER (action_area), 5); - } /* we intercept the GtkRecentChooser::item_activated signal and try to @@ -278,7 +280,7 @@ gtk_recent_chooser_dialog_new_valist (const gchar *title, GtkWidget *result; const char *button_text = first_button_text; gint response_id; - + result = g_object_new (GTK_TYPE_RECENT_CHOOSER_DIALOG, "title", title, "recent-manager", manager, |