patch from Jerome De Greef for some fixes for
"Show Root Menu", "Show Winops Menu", "Show Named Menu" SVN revision: 2171
This commit is contained in:
parent
e5b5bf2f22
commit
2aaa8c76d4
|
@ -0,0 +1,5 @@
|
||||||
|
Geoff Harrison (Mandrake) <mandrake@mandrake.net>
|
||||||
|
Carsten Haitzler (Raster) <raster@rasterman.com>
|
||||||
|
|
||||||
|
patch from Jerome De Greef <jerome_degreef@hotmail.com>
|
||||||
|
for "Show Root Menu", "Show Winops Menu", "Show Named Menu"
|
7
viewer.c
7
viewer.c
|
@ -290,6 +290,7 @@ on_save_data(GtkWidget *widget, gpointer data)
|
||||||
for(i=0;i<real_rows;i++) {
|
for(i=0;i<real_rows;i++) {
|
||||||
char tmp[1024];
|
char tmp[1024];
|
||||||
char *params;
|
char *params;
|
||||||
|
char params_tmp[1024];
|
||||||
char *action;
|
char *action;
|
||||||
char *key;
|
char *key;
|
||||||
char *mod;
|
char *mod;
|
||||||
|
@ -312,6 +313,10 @@ on_save_data(GtkWidget *widget, gpointer data)
|
||||||
}
|
}
|
||||||
gtk_clist_get_text(GTK_CLIST(clist),i,3,¶ms);
|
gtk_clist_get_text(GTK_CLIST(clist),i,3,¶ms);
|
||||||
if(strcmp(params,"")) {
|
if(strcmp(params,"")) {
|
||||||
|
if(action_id==9) {
|
||||||
|
sprintf(params_tmp,"%s %s","named",params);
|
||||||
|
params=(char *)params_tmp;
|
||||||
|
}
|
||||||
sprintf(tmp,"%s %i %i %s\n",key,modifier,action_id,params);
|
sprintf(tmp,"%s %i %i %s\n",key,modifier,action_id,params);
|
||||||
} else {
|
} else {
|
||||||
sprintf(tmp,"%s %i %i\n",key,modifier,action_id);
|
sprintf(tmp,"%s %i %i\n",key,modifier,action_id);
|
||||||
|
@ -643,6 +648,8 @@ create_list_window(void)
|
||||||
for (k = 0; (actions[k].text); k++) {
|
for (k = 0; (actions[k].text); k++) {
|
||||||
if (j == actions[k].id) {
|
if (j == actions[k].id) {
|
||||||
if (strcmp(stuff[3],"")) {
|
if (strcmp(stuff[3],"")) {
|
||||||
|
if ((j==9) && (!strncmp(stuff[3],"named",5)));
|
||||||
|
sscanf(stuff[3],"%*s %s",stuff[3]);
|
||||||
if ((actions[k].param_tpe == 0)&&(actions[k].params)) {
|
if ((actions[k].param_tpe == 0)&&(actions[k].params)) {
|
||||||
if (!strcmp(stuff[3], actions[k].params)) {
|
if (!strcmp(stuff[3], actions[k].params)) {
|
||||||
sprintf(stuff[2],"%s",actions[k].text);
|
sprintf(stuff[2],"%s",actions[k].text);
|
||||||
|
|
Loading…
Reference in New Issue