projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10f5076
)
file chooser dialog: Show a subtitle
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 27 Jun 2015 01:15:55 +0000
(21:15 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 4 Jul 2015 04:29:24 +0000
(
00:29
-0400)
Use the new "subtitle" property of the file chooser widget
to display a subtitle in the headerbar, if we have one.
gtk/gtkfilechooserdialog.c
patch
|
blob
|
history
diff --git
a/gtk/gtkfilechooserdialog.c
b/gtk/gtkfilechooserdialog.c
index 29fbb48d5f88235e9d44997414c18fbc08c30656..29f8318b7b8afc21d922db7df1280280d85eeac8 100644
(file)
--- 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);
}