projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix memleak
[lttv.git]
/
ltt
/
branches
/
poly
/
lttv
/
modules
/
gui
/
lttvwindow
/
lttvwindow
/
menu.c
diff --git
a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/menu.c
b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/menu.c
index 90a782b5ba76dcf1ba8898fc46f2ca94ab0a8f7e..5235acaaa61acdde2a1de3d3228ab8a2451ab7f0 100644
(file)
--- a/
ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/menu.c
+++ b/
ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/menu.c
@@
-16,6
+16,10
@@
* MA 02111-1307, USA.
*/
* MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <lttv/lttv.h>
#include <lttvwindow/menu.h>
#include <lttv/lttv.h>
#include <lttvwindow/menu.h>
@@
-38,14
+42,11
@@
LttvMenuClosure lttv_menus_add(LttvMenus *h,
{
LttvMenuClosure c;
{
LttvMenuClosure c;
- /* if h is null, do nothing, or popup a warning message */
- if(h == NULL)return;
-
c.con = f;
c.menu_path = menu_path;
c.menu_text = menu_text;
c.widget = widget;
c.con = f;
c.menu_path = menu_path;
c.menu_text = menu_text;
c.widget = widget;
- g_array_append_val(h,c);
+
if(h != NULL)
g_array_append_val(h,c);
return c;
}
return c;
}
@@
-53,7
+54,7
@@
LttvMenuClosure lttv_menus_add(LttvMenus *h,
GtkWidget *lttv_menus_remove(LttvMenus *h, lttvwindow_viewer_constructor f)
{
LttvMenuClosure * tmp;
GtkWidget *lttv_menus_remove(LttvMenus *h, lttvwindow_viewer_constructor f)
{
LttvMenuClosure * tmp;
- gint i;
+ g
u
int i;
GtkWidget *widget;
for(i=0;i<h->len;i++){
GtkWidget *widget;
for(i=0;i<h->len;i++){
This page took
0.022871 seconds
and
4
git commands to generate.