From e9e4ed5f7f1798787ba06e8a509821a955b10556 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 26 Jun 2015 21:15:55 -0400 Subject: [PATCH] file chooser dialog: Show a subtitle Use the new "subtitle" property of the file chooser widget to display a subtitle in the headerbar, if we have one. --- gtk/gtkfilechooserdialog.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk/gtkfilechooserdialog.c b/gtk/gtkfilechooserdialog.c index 29fbb48d5f..29f8318b7b 100644 --- a/gtk/gtkfilechooserdialog.c +++ b/gtk/gtkfilechooserdialog.c @@ -517,6 +517,9 @@ setup_search (GtkFileChooserDialog *dialog) g_object_bind_property (button, "active", dialog->priv->widget, "search-mode", G_BINDING_BIDIRECTIONAL); + g_object_bind_property (dialog->priv->widget, "subtitle", + header, "subtitle", + G_BINDING_SYNC_CREATE); gtk_container_forall (GTK_CONTAINER (header), add_button, dialog); }