fix for newer gcc
authorEric Andersen <andersen@codepoet.org>
Mon, 10 Apr 2006 23:25:40 +0000 (23:25 -0000)
committerEric Andersen <andersen@codepoet.org>
Mon, 10 Apr 2006 23:25:40 +0000 (23:25 -0000)
package/ltt/ltt-gcc4.patch [new file with mode: 0644]

diff --git a/package/ltt/ltt-gcc4.patch b/package/ltt/ltt-gcc4.patch
new file mode 100644 (file)
index 0000000..4e709d6
--- /dev/null
@@ -0,0 +1,23 @@
+--- orig/TraceToolkit-0.9.5/Visualizer/MainWindow.c    2002-04-15 19:23:49.000000000 -0700\r
++++ TraceToolkit-0.9.5/Visualizer/MainWindow.c 2006-04-05 16:04:47.000000000 -0700\r
+@@ -28,6 +28,7 @@\r
+ #include <string.h>\r
+ #include <fcntl.h>\r
+ #include <unistd.h>\r
++#include <stdlib.h>\r
+ #include <sys/stat.h>\r
+ #include <gdk/gdkkeysyms.h>\r
\r
+@@ -3146,8 +3147,10 @@\r
\r
+   /* FORCEFULLY disconnect event handlers from the notebook widget */\r
+   /*  I didn't find any cleaner way to do this. K.Y. 9/5/2000 */\r
+-  GTK_SIGNAL_FUNC(GTK_WIDGET_CLASS(GTK_OBJECT(pmSysView->Window->MNotebook)->klass)->key_press_event) = NULL,\r
+-  GTK_SIGNAL_FUNC(GTK_WIDGET_CLASS(GTK_OBJECT(pmSysView->Window->MNotebook)->klass)->focus_in_event) = NULL,\r
++  gtk_type_free(GTK_TYPE_SIGNAL, \r
++              GTK_SIGNAL_FUNC(GTK_WIDGET_CLASS(GTK_OBJECT(pmSysView->Window->MNotebook)->klass)->key_press_event));\r
++  gtk_type_free(GTK_TYPE_SIGNAL,\r
++              GTK_SIGNAL_FUNC(GTK_WIDGET_CLASS(GTK_OBJECT(pmSysView->Window->MNotebook)->klass)->focus_in_event));\r
\r
+   /* Connect the key press event */\r
+   gtk_signal_connect(GTK_OBJECT(pmSysView->Window->MWindow),\r