mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
network/gtorrentviewer: Included two patches.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
This commit is contained in:
parent
228e54ebd0
commit
a077b3877a
3 changed files with 44 additions and 0 deletions
|
@ -69,6 +69,15 @@ find . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
# The following 2 patches are from Fedora 13
|
||||
|
||||
# Let drag and drop work with URIs as well as files
|
||||
patch -p1 < $CWD/patches/gtorrentviewer-0.2b-desktop.patch
|
||||
|
||||
# Fix crash due to use of uninitialized GValue
|
||||
# Thanks to Niels Horn for pointing this out
|
||||
patch -p1 < $CWD/patches/GTorrentViewer-0.2b-tracker-details-refresh.patch
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
This patch fixes a crash when the "Refresh" button in the "Tracker Details"
|
||||
tab is pushed, due to the use of an uninitialized GValue.
|
||||
|
||||
https://bugzilla.redhat.com/show_bug.cgi?id=542502
|
||||
https://bugzilla.redhat.com/show_bug.cgi?id=572806
|
||||
https://bugzilla.redhat.com/show_bug.cgi?id=593734
|
||||
|
||||
--- GTorrentViewer-0.2b/src/mainwindow.c.orig 2004-10-26 05:37:58.000000000 +0100
|
||||
+++ GTorrentViewer-0.2b/src/mainwindow.c 2010-06-25 14:43:22.391786427 +0100
|
||||
@@ -744,7 +744,7 @@
|
||||
{
|
||||
GtkListStore *list;
|
||||
GtkTreeIter iter;
|
||||
- GValue itemvalue;
|
||||
+ GValue itemvalue = {0};
|
||||
gchar *tracker;
|
||||
GError *err;
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
--- GTorrentViewer-0.2b/data/gtorrentviewer.desktop.in.orig 2004-10-21 05:40:16.000000000 +0100
|
||||
+++ GTorrentViewer-0.2b/data/gtorrentviewer.desktop.in 2007-08-12 12:14:52.000000000 +0100
|
||||
@@ -2,7 +2,7 @@
|
||||
_Name=Torrent Metainfo Viewer
|
||||
_GenericName=Torrent Viewer
|
||||
_Comment=Viewer and Editor for .torrent files
|
||||
-Exec=gtorrentviewer %U
|
||||
+Exec=gtorrentviewer %f
|
||||
Icon=gtorrentviewer.png
|
||||
StartupNotify=false
|
||||
Terminal=false
|
||||
@@ -10,4 +10,4 @@
|
||||
Encoding=UTF-8
|
||||
Categories=Application;Network;
|
||||
MimeType=application/x-bittorrent;
|
||||
-Version=0.2
|
||||
+Version=1.0
|
Loading…
Reference in a new issue