[gnome-photos] main-toolbar: Show the "<" when returning from preview to a collection



commit 6f3cdf5e211c3746cd4d85259d14d8287ff7e182
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Apr 8 15:17:33 2013 +0200

    main-toolbar: Show the "<" when returning from preview to a collection
    
    We destroy the coll_back_button in clear_state_data so that it is
    recreated when returning.

 src/photos-main-toolbar.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-main-toolbar.c b/src/photos-main-toolbar.c
index 3a89fa4..d9335df 100644
--- a/src/photos-main-toolbar.c
+++ b/src/photos-main-toolbar.c
@@ -240,6 +240,12 @@ photos_main_toolbar_clear_state_data (PhotosMainToolbar *self)
 {
   PhotosMainToolbarPrivate *priv = self->priv;
 
+  if (priv->coll_back_button != NULL)
+    {
+      gtk_widget_destroy (priv->coll_back_button);
+      priv->coll_back_button = NULL;
+    }
+
   if (priv->collection_id != 0)
     {
       g_signal_handler_disconnect (priv->col_mngr, priv->collection_id);


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