summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechooserdialog.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-06-26 21:15:55 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-07-04 00:29:24 -0400
commite9e4ed5f7f1798787ba06e8a509821a955b10556 (patch)
tree9097df98dc07269217abef3a55f3a5aa942edfc4 /gtk/gtkfilechooserdialog.c
parent10f5076bb55e64cd07ea4b7783d60e37c727a31a (diff)
downloadgtk+-e9e4ed5f7f1798787ba06e8a509821a955b10556.tar.gz
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.
Diffstat (limited to 'gtk/gtkfilechooserdialog.c')
-rw-r--r--gtk/gtkfilechooserdialog.c3
1 files changed, 3 insertions, 0 deletions
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);
}