]> git.pld-linux.org Git - packages/gnome-terminal.git/commitdiff
- support for -geometry and -T switches from xterm
authorgrzegol <grzegol@pld-linux.org>
Sun, 10 Aug 2003 17:12:49 +0000 (17:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    gnome-terminal-geometry.patch -> 1.1

gnome-terminal-geometry.patch [new file with mode: 0644]

diff --git a/gnome-terminal-geometry.patch b/gnome-terminal-geometry.patch
new file mode 100644 (file)
index 0000000..ecc11d9
--- /dev/null
@@ -0,0 +1,23 @@
+--- gnome-terminal-2.2.0/src/terminal.c.geometry       2003-01-19 23:51:51.000000000 +0100
++++ gnome-terminal-2.2.0/src/terminal.c        2003-01-21 18:02:51.000000000 +0100
+@@ -1379,8 +1379,19 @@
+   argc_copy = argc;
+   /* we leave empty slots, for --startup-id and --display */
+   argv_copy = g_new0 (char *, argc_copy + 5);
+-  for (i = 0; i < argc_copy; i++)
++  for (i = 0; i < argc_copy; i++) {
++    /* add support for -geometry and -T from xterm */
++    /* we are leaking the two options but it is not really a problem */
++    if (!strcmp (argv [i], "-geometry")) 
++      {
++      argv[i] = "--geometry";
++      }
++    if (!strcmp (argv [i], "-T")) 
++      {
++      argv[i] = "-t";
++      }
+     argv_copy [i] = g_strdup (argv [i]);
++  }
+   argv_copy [i] = NULL;
+   results = option_parsing_results_init (&argc, argv);
This page took 0.033672 seconds and 4 git commands to generate.