aboutsummaryrefslogtreecommitdiff
path: root/desktop/gmrun/patches/70-cmdline.patch
diff options
context:
space:
mode:
authorEdinaldo P.Silva <edps.mundognu@gmail.com>2017-03-10 09:49:47 +0000
committerDavid Spencer <idlemoor@slackbuilds.org>2017-03-10 09:50:48 +0000
commite3a478c576dff0958d1176710851195e44fe81c2 (patch)
tree8c1f6fe879d9d21307457f6cc59becb600c0edf4 /desktop/gmrun/patches/70-cmdline.patch
parentfac6fa454693c332345f5970801f5b1f704247cb (diff)
desktop/gmrun: New maintainer + add manpage & patches.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'desktop/gmrun/patches/70-cmdline.patch')
-rw-r--r--desktop/gmrun/patches/70-cmdline.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/desktop/gmrun/patches/70-cmdline.patch b/desktop/gmrun/patches/70-cmdline.patch
new file mode 100644
index 0000000000000..05bac80ae3ac9
--- /dev/null
+++ b/desktop/gmrun/patches/70-cmdline.patch
@@ -0,0 +1,18 @@
+# Description: add support for command line argument as initial content
+# Author: Fernando Vezzosi <fv@linuxvar.it>
+
+Index: gmrun-0.9.2/src/main.cc
+===================================================================
+--- gmrun-0.9.2.orig/src/main.cc 2010-02-03 12:36:13.483769799 +0800
++++ gmrun-0.9.2/src/main.cc 2010-02-03 12:37:21.895975382 +0800
+@@ -619,6 +619,10 @@
+ gtk_completion_line_last_history_item(GTK_COMPLETION_LINE(compline));
+ }
+
++ if(argc == 2 && argv[1]){
++ gtk_entry_set_text(GTK_ENTRY(compline), argv[1]);
++ }
++
+ gtk_box_pack_start(GTK_BOX(hbox), compline, TRUE, TRUE, 0);
+
+ int prefs_top = 80;