problems with titleless CList



There seems to be a lot of code inside the CList class that simply expects a
non-NULL pointer in GtkCListColumn.button, which is not true if you create the
CList without titles.  This is a bug, isn't it?

I have found this problem in 2 functions I am using:


gtk_clist_set_column_visibility calls gtk_widget_show / gtk_widget_hide with
NULL widget pointer.  The error message:

Gtk-CRITICAL **: file gtkwidget.c: line 1461 (gtk_widget_hide): assertion `widget != NULL' failed.


Something else creates a problem during gtk_widget_show.  The message:

Gtk-CRITICAL **: file gtkwidget.c: line 2286 (gtk_widget_size_allocate): assertion `widget != NULL' failed.

A stack backtrace:

#0  g_log (log_domain=0x4011f090 "Gtk", log_level=G_LOG_LEVEL_CRITICAL, 
    format=0x4011f062 "file %s: line %d (%s): assertion `%s' failed.") at gmessages.c:348
#1  0x400f9bc6 in gtk_widget_size_allocate (widget=0x0, allocation=0xbffff0fc) 
    at gtkwidget.c:2287
#2  0x40048067 in size_allocate_title_buttons (clist=0x8075478) at gtkclist.c:1862
#3  0x4004e122 in gtk_clist_realize (widget=0x8075478) at gtkclist.c:4316
#4  0x401030bd in gtk_marshal_NONE__NONE (object=0x8075478, func=0x4004dcf0 
    <gtk_clist_realize>, func_data=0x0, args=0xbffff23c) at gtkmarshal.c:363
#5  0x400c7a61 in gtk_signal_real_emit (object=0x8075478, signal_id=6,
    params=0xbffff23c) at gtksignal.c:1378
#6  0x400c5c0e in gtk_signal_emit (object=0x8075478, signal_id=6) at gtksignal.c:507
#7  0x400f83c8 in gtk_widget_realize (widget=0x8075478) at gtkwidget.c:1578
#8  0x400f816e in gtk_widget_map (widget=0x8075478) at gtkwidget.c:1524
#9  0x4010114d in gtk_window_map (widget=0x8071aa0) at gtkwindow.c:606
#10 0x401030bd in gtk_marshal_NONE__NONE (object=0x8071aa0, func=0x40101050 <gtk_window_map>,
    func_data=0x0, args=0xbffff584) at gtkmarshal.c:363
#11 0x400c7a61 in gtk_signal_real_emit (object=0x8071aa0, signal_id=4, params=0xbffff584)
    at gtksignal.c:1378
#12 0x400c5c0e in gtk_signal_emit (object=0x8071aa0, signal_id=4) at gtksignal.c:507
#13 0x400f81a8 in gtk_widget_map (widget=0x8071aa0) at gtkwidget.c:1526
#14 0x40100f65 in gtk_window_show (widget=0x8071aa0) at gtkwindow.c:570
#15 0x401030bd in gtk_marshal_NONE__NONE (object=0x8071aa0, func=0x40100eb0 <gtk_window_show>,
    func_data=0x0, args=0xbffff8b0) at gtkmarshal.c:363
#16 0x400c7a61 in gtk_signal_real_emit (object=0x8071aa0, signal_id=2, params=0xbffff8b0) 
    at gtksignal.c:1378
#17 0x400c5c0e in gtk_signal_emit (object=0x8071aa0, signal_id=2) at gtksignal.c:507
#18 0x400f7bb8 in gtk_widget_show (widget=0x8071aa0) at	gtkwidget.c:1402
#19 0x80498c1 in main (argc=2, argv=0xbffffb74) at millennium.c:228
		

-- 
Andreas E. Bombe <andreas.bombe@munich.netsurf.de>
http://home.pages.de/~andreas.bombe/

PGP 1024bit ID:0x886663c9 fingerprint: 30EC0973847B5583 C47A91D99DC54BB0
    2048bit ID:0xF62D5CC1 fingerprint: 136BBC1536B8B77A 200558E86FAAF8ED



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]