file chooser dialog: Show a subtitle
authorMatthias Clasen <mclasen@redhat.com>
Sat, 27 Jun 2015 01:15:55 +0000 (21:15 -0400)
committerMatthias 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

index 29fbb48d5f88235e9d44997414c18fbc08c30656..29f8318b7b8afc21d922db7df1280280d85eeac8 100644 (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);
     }