[mupen64plus] 123/262: Show *.n64 and *.v64 in filtered gtk open dialog
Sven Eckelmann
ecsv-guest at moszumanska.debian.org
Thu Nov 26 05:59:25 UTC 2015
This is an automated email from the git hooks/post-receive script.
ecsv-guest pushed a commit to branch master
in repository mupen64plus.
commit 317b5cf7df5b2961e0832abc6022a7c343b75394
Author: Sven Eckelmann <sven.eckelmann at gmx.de>
Date: Fri Sep 11 00:39:38 2009 +0200
Show *.n64 and *.v64 in filtered gtk open dialog
When somebody tries to open files with the extension n64 or v64 the
filter says that they are supported but they will not be shown. If the
user switches to to "all files" mode they will be shown. GTK has a
special gtk_file_filter_add_pattern to add the actual pattern and
gtk_file_filter_set_name to give them a name which will presented to the
user. To show [vn]64 files the filter for z64 has to be altered and not
only the name of the filter.
---
debian/changelog | 8 ++++++++
debian/patches/123-gtk-open-filter.patch | 34 ++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 43 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 9f10004..e4c681f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+mupen64plus (1.5+dfsg1-5) UNRELEASED; urgency=low
+
+ * debian/patches:
+ - Add 123-gtk-open-filter.patch, Show files with .n64 and .v64 extension in
+ filtered open file dialog (Closes: #546046)
+
+ -- Sven Eckelmann <sven.eckelmann at gmx.de> Fri, 11 Sep 2009 00:37:19 +0200
+
mupen64plus (1.5+dfsg1-4) unstable; urgency=low
* debian/patches;
diff --git a/debian/patches/123-gtk-open-filter.patch b/debian/patches/123-gtk-open-filter.patch
new file mode 100644
index 0000000..6d433be
--- /dev/null
+++ b/debian/patches/123-gtk-open-filter.patch
@@ -0,0 +1,34 @@
+From 0c079cb4248e49c7712a80f595c010068c4cfc29 Mon Sep 17 00:00:00 2001
+From: Sven Eckelmann <sven.eckelmann at gmx.de>
+Date: Fri, 11 Sep 2009 00:30:58 +0200
+Subject: [PATCH] Show *.n64 and *.v64 in filtered gtk open dialog
+
+When somebody tries to open files with the extension n64 or v64 the
+filter says that they are supported but they will not be shown. If the
+user switches to to "all files" mode they will be shown. GTK has a
+special gtk_file_filter_add_pattern to add the actual pattern and
+gtk_file_filter_set_name to give them a name which will presented to the
+user. To show [vn]64 files the filter for z64 has to be altered and not
+only the name of the filter.
+
+Signed-off-by: Sven Eckelmann <sven.eckelmann at gmx.de>
+---
+ main/gui_gtk/main_gtk.c | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/main/gui_gtk/main_gtk.c b/main/gui_gtk/main_gtk.c
+index e8c0fd6..41d382e 100644
+--- a/main/gui_gtk/main_gtk.c
++++ b/main/gui_gtk/main_gtk.c
+@@ -428,7 +428,7 @@ static void callback_open_rom(GtkWidget* widget, gpointer data)
+ gtk_file_filter_add_mime_type(file_filter, "application/zip");
+ gtk_file_filter_add_mime_type(file_filter, "application/x-bzip2");
+ gtk_file_filter_add_mime_type(file_filter, "application/x-7z");
+- gtk_file_filter_add_pattern(file_filter, "*.[zZ]64");
++ gtk_file_filter_add_pattern(file_filter, "*.[zZnNvV]64");
+ gtk_file_filter_add_pattern(file_filter, "*.lzma");
+ gtk_file_filter_add_pattern(file_filter, "*.7z");
+
+--
+1.6.3.3
+
diff --git a/debian/patches/series b/debian/patches/series
index 3fa7583..b22ac05 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -21,3 +21,4 @@
120-ftbfs-glibc210.patch
121-version-string.patch
122-default-optimisations.patch
+123-gtk-open-filter.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/mupen64plus.git
More information about the Pkg-games-commits
mailing list