[gnome-music/replaymenu] added items to replay menu
- From: Eslam Mostafa <cseslam src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/replaymenu] added items to replay menu
- Date: Thu, 2 May 2013 16:32:04 +0000 (UTC)
commit 62727c55be7f05436a85e2df626e1c882d9692df
Author: Eslam Mostafa <cseslam src gnome org>
Date: Thu May 2 18:31:38 2013 +0200
added items to replay menu
data/PlayerToolbar.ui | 11 ++++++++---
libgd | 2 +-
src/player.js | 9 +++++++++
3 files changed, 18 insertions(+), 4 deletions(-)
---
diff --git a/data/PlayerToolbar.ui b/data/PlayerToolbar.ui
index 05486e3..67246a0 100644
--- a/data/PlayerToolbar.ui
+++ b/data/PlayerToolbar.ui
@@ -143,6 +143,8 @@
<property name="can_focus">False</property>
<property name="has_focus">False</property>
<property name="is_focus">False</property>
+ <property name="halign">center</property>
+ <property name="valign">center</property>
<property name="orientation">vertical</property>
<property name="homogeneous">True</property>
<child>
@@ -161,7 +163,7 @@
</object>
<packing>
<property name="expand">False</property>
- <property name="fill">True</property>
+ <property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
@@ -171,18 +173,21 @@
<property name="can_focus">False</property>
<property name="has_focus">False</property>
<property name="is_focus">False</property>
+ <property name="halign">center</property>
+ <property name="valign">center</property>
<property name="xalign">0</property>
+ <property name="ellipsize">middle</property>
</object>
<packing>
<property name="expand">False</property>
- <property name="fill">True</property>
+ <property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
- <property name="fill">True</property>
+ <property name="fill">False</property>
<property name="position">2</property>
</packing>
</child>
diff --git a/libgd b/libgd
index bda4b2c..801ddd1 160000
--- a/libgd
+++ b/libgd
@@ -1 +1 @@
-Subproject commit bda4b2cd115de3780136c17a8efd49e609914482
+Subproject commit 801ddd1edd4c88f07468938bd6166e3b2a433730
diff --git a/src/player.js b/src/player.js
index 3c8037c..4815a5e 100644
--- a/src/player.js
+++ b/src/player.js
@@ -270,6 +270,15 @@ const Player = new Lang.Class({
this.coverImg = this._ui.get_object('cover');
this.duration = this._ui.get_object('duration');
this.replayBtn = this._ui.get_object('menuButton');
+ let replayMenu = this._ui.get_object('replayMenu');
+
+ let replaySong = Gtk.MenuItem.new_with_label("replay song");
+ let replayAll = Gtk.MenuItem.new_with_label("replay all");
+ let shuffle = Gtk.MenuItem.new_with_label("shuffle");
+ replayMenu.attach(replaySong, 0, 1, 0, 1);
+ replayMenu.attach(replayAll, 0, 1, 1, 2);
+ replayMenu.attach(shuffle, 0, 1, 2, 3);
+ replayMenu.show_all();
this.prevBtn.connect("clicked", Lang.bind(this, this._onPrevBtnClicked));
this.playBtn.connect("toggled", Lang.bind(this, this._onPlayBtnToggled));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]