aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2006-02-04 20:26:36 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2006-02-04 20:26:36 +0000
commit9962b6a83c45a6df856296bc0db3de4adae86832 (patch)
tree406134a9e7223174a1fff8dc0178ee41550a375b /gtk
parentfedb9b5c92e7078e67e669b554e909ed27f733f5 (diff)
VC6 doesn't like empty structs.
svn path=/trunk/; revision=17151
Diffstat (limited to 'gtk')
-rw-r--r--gtk/funnel_stat.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/gtk/funnel_stat.c b/gtk/funnel_stat.c
index c6d2d6f6ae..aee6881ea5 100644
--- a/gtk/funnel_stat.c
+++ b/gtk/funnel_stat.c
@@ -66,8 +66,14 @@ struct _funnel_tree_window_t {
GtkWidget *win;
};
-struct _funnel_node_t {};
-struct _funnel_dialog_t {};
+
+struct _funnel_node_t {
+ void* dummy;
+};
+
+struct _funnel_dialog_t {
+ void* dummy;
+};
static void text_window_cancel_button_cb(GtkWidget *bt _U_, gpointer data) {
funnel_text_window_t* tw = data;
@@ -81,7 +87,6 @@ static funnel_text_window_t* new_text_window(const gchar* title) {
funnel_text_window_t* tw = g_malloc(sizeof(funnel_text_window_t));
GtkWidget *txt_scrollw, *main_vb, *bbox, *bt_close;
- printf("funnel: new_text_window('%s')\n",title);
tw->win = window_new(GTK_WINDOW_TOPLEVEL,title);
txt_scrollw = scrolled_window_new(NULL, NULL);
main_vb = gtk_vbox_new(FALSE, 3);
@@ -212,6 +217,11 @@ static const gchar* text_window_get_text(funnel_text_window_t* tw) {
}
static void text_window_destroy(funnel_text_window_t* tw) {
+ /*
+ * XXX: This way Lua's garbage collector might destroy the window.
+ * Here we need to change the callbacks for closing the window so that
+ * the window can live after Lua has destroyed it and we do not leak the window object.
+ */
if (tw->win) {
window_destroy(tw->win);
}