slackbuilds_ponce/desktop/gmrun/patches/70-cmdline.patch
Edinaldo P.Silva e3a478c576 desktop/gmrun: New maintainer + add manpage & patches.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
2017-03-10 09:50:48 +00:00

18 lines
633 B
Diff

# 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;