[gnome-music] fix play/pause image error



commit a63286f952317c24296f46f5a9af4b22306d0d04
Author: Eslam Mostafa <cseslam src gnome org>
Date:   Wed May 1 18:11:19 2013 +0200

    fix play/pause image error
    
    Signed-off-by: Seif Lotfy <seif lotfy com>

 data/PlayerToolbar.ui |    5 +++++
 src/player.js         |    4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/data/PlayerToolbar.ui b/data/PlayerToolbar.ui
index e065891..bfa0834 100644
--- a/data/PlayerToolbar.ui
+++ b/data/PlayerToolbar.ui
@@ -248,6 +248,11 @@
     <property name="can_focus">False</property>
     <property name="icon_name">media-playback-start-symbolic</property>
   </object>
+  <object class="GtkImage" id="pause_image">
+    <property name="visible">True</property>
+    <property name="can_focus">False</property>
+    <property name="icon_name">media-playback-pause-symbolic</property>
+  </object>
   <object class="GtkImage" id="previous_image">
     <property name="visible">True</property>
     <property name="can_focus">False</property>
diff --git a/src/player.js b/src/player.js
index 0a8f142..4deff3d 100644
--- a/src/player.js
+++ b/src/player.js
@@ -127,11 +127,11 @@ const Player = new Lang.Class({
     _setPlaying: function(mode) {
         if( mode == true ) {
             this.play_btn.set_active(true);
-            this.play_btn.set_image(this._pause_img);
+            this.play_btn.set_image(this._pause_image);
             this.play_btn.show_all();
         } else if ( mode == false ) {
             this.play_btn.set_active(false);
-            this.play_btn.set_image(this._play_img);
+            this.play_btn.set_image(this._play_image);
             this.play_btn.show_all();
         }
     },


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