[gnome-photos] main-toolbar: Show the "<" when returning from preview to a collection
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] main-toolbar: Show the "<" when returning from preview to a collection
- Date: Mon, 8 Apr 2013 13:26:16 +0000 (UTC)
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]