676c250aca
If you want a fast way to reach your Fluxbox menus when you're using all your screen, your problems are over. Now you can use the Fluxbox Tray Menu to put a icon on your toolbar, and when clicking with the left button, your Fluxbox menus will appear!
31 lines
943 B
Text
31 lines
943 B
Text
$NetBSD: patch-aa,v 1.1.1.1 2008/05/13 21:36:14 sborrill Exp $
|
|
|
|
--- src/ftmenu.c.orig 2008-05-13 21:49:29.000000000 +0100
|
|
+++ src/ftmenu.c 2008-05-13 22:24:01.000000000 +0100
|
|
@@ -178,7 +178,7 @@
|
|
regcomp(®_command ,"{.*}" ,0);
|
|
|
|
// find the menu file
|
|
- while((nchars=getline(&line,&line_len,file))>0){
|
|
+ while(fgets(line, MAX_LINE_LENGTH, file) != NULL) {
|
|
if(regexec(®_file,line,0,NULL,0)==0){
|
|
g_strstrip(line);
|
|
line = strchr(line,':'); // break into tokens
|
|
@@ -195,7 +195,7 @@
|
|
|
|
// read the menu file
|
|
file = fopen(menufile,"r");
|
|
- while((nchars=getline(&line,&line_len,file))>0){
|
|
+ while(fgets(line, MAX_LINE_LENGTH, file) != NULL) {
|
|
// finds the menu title
|
|
if(regexec(®_begin,line,0,NULL,0)==0){
|
|
if(regexec(®_paren,line,(size_t) 1,exp_match,0)==0){
|
|
@@ -226,7 +226,7 @@
|
|
menu_depth--;
|
|
}
|
|
fclose(file);
|
|
- g_free(&line);
|
|
+ g_free(line);
|
|
|
|
regfree(®_file);
|
|
regfree(®_begin);
|