[gnome-music] Switch to Gtk.Stack instead of Gd.Stack
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] Switch to Gtk.Stack instead of Gd.Stack
- Date: Thu, 16 May 2013 13:12:17 +0000 (UTC)
commit dc9227cffd224307e4bec9d7c3a7c252d718aed1
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date: Thu May 16 13:15:08 2013 +0200
Switch to Gtk.Stack instead of Gd.Stack
This bumps gtk requirement to 3.9 and fixes crossfade effect on opening album view
https://bugzilla.gnome.org/show_bug.cgi?id=700307
configure.ac | 1 +
src/view.js | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index f45d40c..3d1a7ba 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,6 +27,7 @@ PKG_PROG_PKG_CONFIG([0.22])
GLIB_GSETTINGS
GOBJECT_INTROSPECTION_REQUIRE([1.35.9])
+PKG_CHECK_MODULES([GTK], [gtk+-3.0 >= 3.9])
AC_PATH_PROG([GJS],[gjs], [no])
if test "$GJS" = "no" ; then
diff --git a/src/view.js b/src/view.js
index 3fe4b5d..89d5ff3 100644
--- a/src/view.js
+++ b/src/view.js
@@ -104,10 +104,10 @@ const LoadMoreButton = new Lang.Class({
const ViewContainer = new Lang.Class({
Name: "ViewContainer",
- Extends: Gd.Stack,
+ Extends: Gtk.Stack,
_init: function(title, header_bar) {
- this.parent({transition_type: Gd.StackTransitionType.CROSSFADE});
+ this.parent({transition_type: Gtk.StackTransitionType.CROSSFADE});
this._grid = new Gtk.Grid({orientation: Gtk.Orientation.VERTICAL})
this._iconWidth = -1
this._iconHeight = 128
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]