summaryrefslogtreecommitdiff
path: root/x11-toolkits/gai/files/patch-gai_gai-gnome.c
diff options
context:
space:
mode:
authorJean-Yves Lefort <jylefort@FreeBSD.org>2005-04-15 20:56:52 +0000
committerJean-Yves Lefort <jylefort@FreeBSD.org>2005-04-15 20:56:52 +0000
commitff50007a989ddcae37a034d85a42182dde3dd2d3 (patch)
tree18a99c54b1d5d9e145af2db8252f58e972a4afee /x11-toolkits/gai/files/patch-gai_gai-gnome.c
parentUpdate to 2.6.2. (diff)
- Update to 0.5.8
- Fix GNOME panel support PR: ports/79980 Submitted by: David Thiel <lx@redundancy.redundancy.org> Approved by: adamw (mentor)
Notes
Notes: svn path=/head/; revision=133450
Diffstat (limited to 'x11-toolkits/gai/files/patch-gai_gai-gnome.c')
-rw-r--r--x11-toolkits/gai/files/patch-gai_gai-gnome.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/x11-toolkits/gai/files/patch-gai_gai-gnome.c b/x11-toolkits/gai/files/patch-gai_gai-gnome.c
new file mode 100644
index 000000000000..f6848e3c1e61
--- /dev/null
+++ b/x11-toolkits/gai/files/patch-gai_gai-gnome.c
@@ -0,0 +1,31 @@
+--- gai/gai-gnome.c.orig Sat Aug 14 13:58:24 2004
++++ gai/gai-gnome.c Fri Apr 15 22:52:09 2005
+@@ -181,7 +181,7 @@
+ static void gai_gnome_create_menu(void)
+ {
+ int i,ptr,j=0;
+- gnome_menu_verb = g_malloc0(sizeof(BonoboUIVerb)*GAI.menu_entries);
++ gnome_menu_verb = g_new0(BonoboUIVerb, GAI.menu_entries + 1);
+
+ /* It will be freed anyway pretty soon */
+ gnome_menu_xml = g_malloc0(81920);
+@@ -225,6 +225,9 @@
+ ptr = strlen(gnome_menu_xml);
+
+ }
++ gnome_menu_verb[j].cname = NULL;
++ gnome_menu_verb[j].cb = NULL;
++ gnome_menu_verb[j].user_data = NULL;
+ sprintf(gnome_menu_xml+ptr,"</popup>\n");
+
+
+@@ -345,8 +348,8 @@
+ static int
+ gai_gnome_expose(GtkWidget *widget, GdkEventExpose *event, gpointer d)
+ {
+- static gboolean expose_lock = FALSE;
+ GAI_ENTER;
++ static gboolean expose_lock = FALSE;
+
+ if(expose_lock){
+ GAI_NOTE("Expose lock");