slackbuilds_ponce/desktop/gmrun/patches/70-cmdline.patch

19 lines
633 B
Diff
Raw Normal View History

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