summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Dibb <beandog@gentoo.org>2008-09-19 09:52:35 +0000
committerSteve Dibb <beandog@gentoo.org>2008-09-19 09:52:35 +0000
commitc5d2d000016f941889f656169672db0caa8b2bda (patch)
treea12255cbdc5c79e8a7bbce9c60a7e515fd7d76c5
parentUpdate to work with latest configure changes (diff)
downloadbeandog-c5d2d000016f941889f656169672db0caa8b2bda.tar.gz
beandog-c5d2d000016f941889f656169672db0caa8b2bda.tar.bz2
beandog-c5d2d000016f941889f656169672db0caa8b2bda.zip
Add navigation folder patch: Restores the original view when returning to parent folder
svn path=/; revision=15
-rw-r--r--media-plugins/mythvideo/ChangeLog6
-rw-r--r--media-plugins/mythvideo/Manifest5
-rw-r--r--media-plugins/mythvideo/files/mythvideo-navigation-folders.patch36
-rw-r--r--media-plugins/mythvideo/mythvideo-0.20.2_p15087-r2.ebuild28
4 files changed, 73 insertions, 2 deletions
diff --git a/media-plugins/mythvideo/ChangeLog b/media-plugins/mythvideo/ChangeLog
index 8da42b4..23c311d 100644
--- a/media-plugins/mythvideo/ChangeLog
+++ b/media-plugins/mythvideo/ChangeLog
@@ -2,6 +2,12 @@
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 19 Sep 2008; Steve Dibb <beandog@gentoo.org>
+ +files/mythvideo-navigation-folders.patch,
+ +mythvideo-0.20.2_p15087-r2.ebuild:
+ Add navigation folder patch: Restores the original view when returning to
+ parent folder
+
27 Apr 2008; Steve Dibb <beandog@gentoo.org> +files/mtd.init.d,
+files/videogallery.patch, +metadata.xml,
+mythvideo-0.20.2_p15087-r1.ebuild:
diff --git a/media-plugins/mythvideo/Manifest b/media-plugins/mythvideo/Manifest
index 49972d7..8501052 100644
--- a/media-plugins/mythvideo/Manifest
+++ b/media-plugins/mythvideo/Manifest
@@ -1,5 +1,6 @@
AUX mtd.init.d 577 RMD160 6e59a47874ece47bdac7b9dc7e0f2e1f03348429 SHA1 ed7b161ba64453946a6ccbbb05ee206cc52b006c SHA256 a4c958b689b99177baf486907f0d83b2d8ff8b72cd371fc29d1ff1f3636a512e
+AUX mythvideo-navigation-folders.patch 1295 RMD160 765b37ce39f81091d4755244eab4bba4b196b643 SHA1 58663bd69b81d500f6ddc7a73b52280d18784384 SHA256 01ac2a0097945daf624b3cb9ab454d9c66f730ccdabb0d10f93e4f87cda3fe10
AUX videogallery.patch 3420 RMD160 e48952ab4e35122dce5249416fc1534230724e05 SHA1 c28d4cf7f2b61c88443080175122ce3e6fe06fc9 SHA256 d431fc901c2c1f8c33093be73afca51c47d00ccba5ec3cc357c59c777c11bf34
-EBUILD mythvideo-0.20.2_p15087-r1.ebuild 946 RMD160 8fcd3f72f7572d1eb0135c800cdcba0a0f1bedad SHA1 6389dedf4842847d2e8eb4c67ec741c61d46e4b4 SHA256 d05f3ddf27315215b0d58b0b9524eea68febf3a24573847bb3bc0d6891a285ca
-MISC ChangeLog 11711 RMD160 2b21de569c3c54448dee1729bf4de51713f9fd63 SHA1 8b55c4069be22976edd58eee7c7158b6622d592f SHA256 edfcbbed55564a3dee3fb6a3533cd2711780d5debf8bfbd1e532d9fa1d66e2c2
+EBUILD mythvideo-0.20.2_p15087-r1.ebuild 993 RMD160 c358b5bdee84d4cbb7d498bf55696db2e9e9f81e SHA1 8e63ff342b8c61f42e6a856c3d5cfd7aebeedb1a SHA256 f6e9d2df9e2a609b863d863109ec896f01d53b03ee0e3b3f87ea1db001acc681
+MISC ChangeLog 313 RMD160 e6b48c46286891c1a1beacc789a4d5d79352d419 SHA1 ae21980c4245e51699df149980f1e67c65017731 SHA256 37b7636fce302700b3d4f6c35dfc10096123b2f3178a819647bea2a3e4793a4b
MISC metadata.xml 222 RMD160 effccac2541ac4d0954899784d7d64c60a9c020e SHA1 c6bd979f236f5e6fe9332eb6568bee402efc793f SHA256 8b2065fecfbbdd0caa3c5eb86b98c22766db07f555edbf3127e9454b468ecff6
diff --git a/media-plugins/mythvideo/files/mythvideo-navigation-folders.patch b/media-plugins/mythvideo/files/mythvideo-navigation-folders.patch
new file mode 100644
index 0000000..2dd38c2
--- /dev/null
+++ b/media-plugins/mythvideo/files/mythvideo-navigation-folders.patch
@@ -0,0 +1,36 @@
+--- mythvideo/mythvideo/videogallery.cpp 2008-09-19 03:43:19.000000000 -0600
++++ mythvideo/mythvideo/videogallery.cpp.new 2008-09-19 03:27:28.000000000 -0600
+@@ -783,11 +783,22 @@ void VideoGallery::positionIcon()
+
+ // determine which part of the list is shown
+ computeLastRowCol(where_we_are->siblingCount());
+- topRow = QMIN(currRow, QMAX(lastRow - nRows + 1, 0));
++
++ GenericTree *lparent = where_we_are->getParent();
++ if (lparent && lparent != video_tree_root)
++ topRow = QMIN(currRow, QMAX(lastRow - nRows + 1, 0));
++ else
++ topRow = mainTopRow;
+ }
+
+ void VideoGallery::handleDirSelect()
+ {
++
++ // Set the main top row if we are leaving video tree root
++ GenericTree *lparent = where_we_are->getParent();
++ if (lparent && lparent == video_tree_root)
++ mainTopRow = topRow;
++
+ // move one node down in the video tree
+ int list_count = where_we_are->childCount();
+ if (list_count > 0) // should be
+--- mythvideo/mythvideo/videogallery.h 2008-09-19 03:43:19.000000000 -0600
++++ mythvideo/mythvideo/videogallery.h.new 2008-09-19 03:20:33.000000000 -0600
+@@ -75,6 +75,7 @@ class VideoGallery : public VideoDialog
+ int lastRow;
+ int lastCol;
+ int topRow;
++ int mainTopRow;
+ int nRows;
+ int nCols;
+
diff --git a/media-plugins/mythvideo/mythvideo-0.20.2_p15087-r2.ebuild b/media-plugins/mythvideo/mythvideo-0.20.2_p15087-r2.ebuild
new file mode 100644
index 0000000..621315c
--- /dev/null
+++ b/media-plugins/mythvideo/mythvideo-0.20.2_p15087-r2.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/mythvideo/mythvideo-0.20.2_p15087.ebuild,v 1.2 2008/03/03 20:05:52 cardoe Exp $
+
+ESVN_PATCHES="${FILESDIR}/videogallery.patch ${FILESDIR}/mythvideo-navigation-folders.patch"
+
+inherit mythtv-plugins subversion
+
+DESCRIPTION="Video player module for MythTV."
+IUSE="mplayer xine"
+KEYWORDS="amd64 ppc x86"
+
+RDEPEND="dev-perl/libwww-perl
+ dev-perl/HTML-Parser
+ dev-perl/URI
+ dev-perl/XML-Simple
+ mplayer? ( || ( media-video/mplayer media-video/mplayer-bin ) )
+ xine? ( media-video/xine-ui )"
+DEPEND="${RDEPEND}"
+
+pkg_postinst() {
+ elog "MythVideo can use any media player to playback files, since"
+ elog "it's a setting in the setup menu."
+ elog
+ elog "MythTV also has an 'Internal' player you can use, though"
+ elog "it will not support as many formats. If you want to use it,"
+ elog "set the player to 'Internal' (note spelling & caps)."
+}