[fenix] 42/127: Added fxi_apptitle.patch
Peter Pentchev
roam at ringlet.net
Thu Dec 17 14:39:33 UTC 2015
This is an automated email from the git hooks/post-receive script.
roam-guest pushed a commit to branch master
in repository fenix.
commit fc3fed7fb7c69bd6c4c6bd916ef4a4a1a09eb274
Author: Miriam Ruiz <miriam at debian.org>
Date: Thu Aug 2 10:46:58 2007 +0000
Added fxi_apptitle.patch
---
debian/changelog | 3 +--
debian/patches/fxi_apptitle.patch | 37 +++++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 39 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 56976c2..680f2d3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,8 +10,7 @@ fenix (0.92a.dfsg1-1) UNRELEASED; urgency=low
* Added debian/doc documentation files and updated debian/copyright
* Added development package with the headers for creating plugins.
* Added headers.patch to patch the development headers before installing.
- * Added fxdll_version.patch for knowing the API version of the plugins.
- * Added plugins_dir.patch so that plugins can be put in a common directory.
+ * Added fxi_apptitle.patch to be able to set the title of the window.
[ Cyril Brulebois ]
* Added XS-Vcs-Svn and XS-Vcs-Browser fields in the control file.
diff --git a/debian/patches/fxi_apptitle.patch b/debian/patches/fxi_apptitle.patch
new file mode 100644
index 0000000..4b06827
--- /dev/null
+++ b/debian/patches/fxi_apptitle.patch
@@ -0,0 +1,37 @@
+--- fenix-0.92a.dfsg1/fxi/src/main.c.orig 2007-08-02 10:27:57.000000000 +0000
++++ fenix-0.92a.dfsg1/fxi/src/main.c 2007-08-02 10:35:37.000000000 +0000
+@@ -258,6 +258,19 @@
+ //if (argv[i][j] == 'b') double_buffer = 1 ;
+ if (argv[i][j] == 'f') enable_filtering = 1 ;
+
++ if (argv[i][j] == 't')
++ {
++ if (argv[i][j+1] == 0)
++ {
++ if (i == argc-1)
++ gr_error (_("You must provide a title")) ;
++ if (apptitle) free(apptitle);
++ apptitle = strdup(argv[i+1]);
++ i++ ;
++ break ;
++ }
++ }
++
+ if (argv[i][j] == 'i')
+ {
+ if (argv[i][j+1] == 0)
+@@ -315,7 +328,13 @@
+ /* Init application title for windowed modes */
+
+ strcpy (dcbname, filename) ;
+- apptitle = strdup(filename) ;
++ if (!apptitle)
++ {
++ if (strcmp(filename, "-") != 0)
++ apptitle = strdup(filename) ;
++ else
++ apptitle = strdup("Fenix") ;
++ }
+
+ #ifdef TARGET_MAC
+ strcpy (files[current_file], filename);
diff --git a/debian/patches/series b/debian/patches/series
index d1224d0..a1037c8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -12,4 +12,5 @@ fxc_return_values.patch
fxi_return_values.patch
plugins_dir.patch
fxdll_version.patch
+fxi_apptitle.patch
0.92a_to_cvs-20070713.1513.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/fenix.git
More information about the Pkg-games-commits
mailing list