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.
This commit is contained in:
Matthias Clasen 2015-06-26 21:15:55 -04:00
parent 10f5076bb5
commit e9e4ed5f7f

View File

@ -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);
}