mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 06:10:15 +00:00
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:
parent
10f5076bb5
commit
e9e4ed5f7f
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user