[rhythmbox] audioscrobbler: only show toolbar when logged in



commit 1ca12fb753b401e36de22b9609e823e948633644
Author: Jamie Nicol <jamie thenicols net>
Date:   Sat Oct 6 00:14:22 2012 +0100

    audioscrobbler: only show toolbar when logged in
    
    https://bugzilla.gnome.org/show_bug.cgi?id=685004

 .../rb-audioscrobbler-profile-page.c               |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/audioscrobbler/rb-audioscrobbler-profile-page.c b/plugins/audioscrobbler/rb-audioscrobbler-profile-page.c
index c1d21c8..e7634ce 100644
--- a/plugins/audioscrobbler/rb-audioscrobbler-profile-page.c
+++ b/plugins/audioscrobbler/rb-audioscrobbler-profile-page.c
@@ -707,7 +707,6 @@ init_actions (RBAudioscrobblerProfilePage *page)
 
 	page->priv->toolbar = rb_source_toolbar_new (RB_DISPLAY_PAGE (page), ui_manager);
 	gtk_box_pack_start (GTK_BOX (page->priv->main_vbox), GTK_WIDGET (page->priv->toolbar), FALSE, FALSE, 0);
-	gtk_widget_show (GTK_WIDGET (page->priv->toolbar));
 
 	g_free (ui_file);
 	g_free (toolbar_name);
@@ -846,11 +845,13 @@ login_status_change_cb (RBAudioscrobblerAccount *account,
 		gtk_widget_hide (page->priv->login_bar);
 	}
 	if (show_profile == TRUE) {
+		gtk_widget_show (GTK_WIDGET (page->priv->toolbar));
 		gtk_label_set_label (GTK_LABEL (page->priv->username_label),
 			             username);
 		gtk_widget_show (page->priv->username_label);
 		gtk_widget_show (page->priv->profile_window);
 	} else {
+		gtk_widget_hide (GTK_WIDGET (page->priv->toolbar));
 		gtk_widget_hide (page->priv->profile_window);
 	}
 



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