blob: 05bac80ae3ac9bf178ce270a035dfb23120aa2b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
|