[gnome-music] Hide toolbar until first playback
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] Hide toolbar until first playback
- Date: Thu, 9 May 2013 14:25:35 +0000 (UTC)
commit f9a9d30348b1abdcc7393c975f55c698f452876b
Author: Guillaume Quintard <guillaume quintard gmail com>
Date: Thu May 9 16:25:27 2013 +0200
Hide toolbar until first playback
data/PlayerToolbar.ui | 5 +++--
src/player.js | 1 +
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/data/PlayerToolbar.ui b/data/PlayerToolbar.ui
index 1bdb8f6..74e2e89 100644
--- a/data/PlayerToolbar.ui
+++ b/data/PlayerToolbar.ui
@@ -8,7 +8,8 @@
<property name="icon-size">1</property>
</object>
<object class="GtkFrame" id="eventBox">
- <property name="visible">True</property>
+ <property name="visible">False</property>
+ <property name="no-show-all">True</property>
<property name="can_focus">False</property>
<property name="label_xalign">0</property>
<property name="shadow_type">none</property>
@@ -16,7 +17,7 @@
<class name="play-bar"/>
</style>
<child>
- <object class="GtkBox" id="conatiner">
+ <object class="GtkBox" id="container">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
diff --git a/src/player.js b/src/player.js
index 94a055d..113e31c 100644
--- a/src/player.js
+++ b/src/player.js
@@ -86,6 +86,7 @@ const Player = new Lang.Class({
},
setPlaying: function(bool) {
+ this.eventBox.set_visible(true);
if (bool) {
this.play();
this.playBtn.set_image(this._pauseImage);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]