[gtk+/wip/matthiasc/filechooser: 4/13] file chooser dialog: Show a subtitle



commit 45cad4febaaab4b916aede3c55ad12c5a58273fe
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jun 26 21:15:55 2015 -0400

    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 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkfilechooserdialog.c b/gtk/gtkfilechooserdialog.c
index 29fbb48..29f8318 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);
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]