[gnome-music/wip/merge: 137/343] Set default toolbar state in window
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/merge: 137/343] Set default toolbar state in window
- Date: Thu, 25 Jul 2013 11:24:55 +0000 (UTC)
commit 9bf9db4d58b58418b783525be0c3194defbb6376
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date: Mon Jul 15 20:06:53 2013 +0200
Set default toolbar state in window
gnomemusic/view.py | 1 -
gnomemusic/window.py | 3 ++-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index e302094..50cc0a5 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -219,7 +219,6 @@ class Albums(ViewContainer):
self.countQuery = Query.ALBUMS_COUNT
self._albumWidget = Widgets.AlbumWidget(player)
self.add(self._albumWidget)
- self.headerBar.setState(1)
def _onStateChanged(self, widget, data=None):
if (self.headerBar.get_stack() is not None) and \
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index 1f5eb51..efc278f 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -1,7 +1,7 @@
from gi.repository import Gtk, Gio, GLib, Tracker
from gettext import gettext as _
-from gnomemusic.toolbar import Toolbar
+from gnomemusic.toolbar import Toolbar, ToolbarState
from gnomemusic.player import Player, SelectionToolbar
import gnomemusic.view as Views
from gnomemusic.query import Query
@@ -93,6 +93,7 @@ class Window(Gtk.ApplicationWindow):
self.views[0] = Views.Empty(self.toolbar, self.player)
self._stack.add_titled(self.views[0], "Empty", "Empty")
+ self.toolbar.setState(ToolbarState.ALBUMS)
self.toolbar.headerBar.show()
self.player.eventBox.show_all()
self._box.show()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]