[gnome-music] Remove additional deprecations
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] Remove additional deprecations
- Date: Fri, 3 Oct 2014 11:49:42 +0000 (UTC)
commit c402fec920d067771bf323f8daa25abfb67225cb
Author: Kris Thomsen <mail kristhomsen dk>
Date: Wed Sep 24 23:02:49 2014 +0200
Remove additional deprecations
Forgot a few - and forgot to clean up after myself
https://bugzilla.gnome.org/show_bug.cgi?id=737142
data/TrackWidget.ui | 2 +-
gnomemusic/player.py | 4 ----
gnomemusic/window.py | 2 +-
3 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/data/TrackWidget.ui b/data/TrackWidget.ui
index 4acd29f..a244444 100644
--- a/data/TrackWidget.ui
+++ b/data/TrackWidget.ui
@@ -22,7 +22,7 @@
<child>
<object class="GtkImage" id="image1">
<property name="can_focus">False</property>
- <property name="icon-size">1</property>
+ <property name="icon_size">1</property>
</object>
</child>
</object>
diff --git a/gnomemusic/player.py b/gnomemusic/player.py
index 1b81c1f..4ff2b1b 100644
--- a/gnomemusic/player.py
+++ b/gnomemusic/player.py
@@ -553,13 +553,9 @@ class Player(GObject.GObject):
self.repeatBtnImage = self._ui.get_object('playlistRepeat')
if Gtk.Settings.get_default().get_property('gtk_application_prefer_dark_theme'):
- #color = Gdk.Color(red=65535, green=65535, blue=65535)
color = Gdk.RGBA(red=1.0, green=1.0, blue=1.0, alpha=1.0)
else:
- #color = Gdk.Color(red=0, green=0, blue=0)
color = Gdk.RGBA(red=0.0, green=0.0, blue=0.0, alpha=0.0)
- #self._playImage.modify_fg(Gtk.StateType.ACTIVE, color)
- #self._pauseImage.modify_fg(Gtk.StateType.ACTIVE, color)
self._playImage.override_color(Gtk.StateFlags.ACTIVE, color)
self._pauseImage.override_color(Gtk.StateFlags.ACTIVE, color)
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index 9fda927..e8eb165 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -177,7 +177,7 @@ class Window(Gtk.ApplicationWindow):
@log
def _setup_view(self):
- self._box = Gtk.VBox()
+ self._box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
self.player = Player()
self.selection_toolbar = SelectionToolbar()
self.toolbar = Toolbar()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]