[totem] grilo: Show title when browsing



commit 92d9f3e5db30409ba7b117c1112d722d6966ba1d
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jan 16 14:56:40 2014 +0100

    grilo: Show title when browsing

 src/plugins/grilo/totem-grilo.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/grilo/totem-grilo.c b/src/plugins/grilo/totem-grilo.c
index be8a60f..ddf5338 100644
--- a/src/plugins/grilo/totem-grilo.c
+++ b/src/plugins/grilo/totem-grilo.c
@@ -685,6 +685,21 @@ set_browser_filter_model_for_path (TotemGriloPlugin *self,
                                self->priv->browser_filter_model);
 
        g_object_set (self->priv->header, "show-back-button", path != NULL, NULL);
+       if (path == NULL) {
+               /* FIXME show switcher */
+       } else {
+               GtkTreeIter iter;
+
+               if (gtk_tree_model_get_iter (self->priv->browser_model, &iter, path)) {
+                       char *text;
+
+                       gtk_tree_model_get (self->priv->browser_model, &iter,
+                                           GD_MAIN_COLUMN_PRIMARY_TEXT, &text,
+                                           -1);
+                       totem_main_toolbar_set_title (TOTEM_MAIN_TOOLBAR (self->priv->header), text);
+                       g_free (text);
+               }
+       }
 }
 
 static void


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