Re: [gtk-list] gtk_clist_columns_autosize



Opps, I forgot something
sorry, It works with 1.2.6, but crashes with 1.2.5
iain

> 
> Hi.
> I'm using gtk_clist_columns_autosize on a CTree, with the tree +/- in the first
> column. This worked fine with Version 1.2.6, but is currently crashing with

	Currently crashing with GTK 1.2.5 with the following backtrace.

> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x2acd0d41 in gdk_string_width (font=0x807e210, string=0x0) at gdkfont.c:236
> 236	gdkfont.c: No such file or directory.
> (gdb) bt
> #0  0x2acd0d41 in gdk_string_width (font=0x807e210, string=0x0)
>     at gdkfont.c:236
> #1  0x2ac23195 in cell_size_request (clist=0x8092ab0, clist_row=0x8093fe0, 
>     column=0, requisition=0x7ffff7f0) at gtkctree.c:2847
> #2  0x2ac0c609 in gtk_clist_optimal_column_width (clist=0x8092ab0, column=0)
>     at gtkclist.c:1711
> #3  0x2ac0c55d in gtk_clist_columns_autosize (clist=0x8092ab0)
>     at gtkclist.c:1676
> #4  0x804a684 in gui_pack_ctree () at gui.c:130
> #5  0x804aaef in gum_gui_init () at gui.c:194
> #6  0x804a222 in main (argc=1, argv=0x7ffff974) at gum.c:86
> 
> It works fine if I do a 
> for (i = 1; i < 6; i++)
> 	gtk_clist_set_column_auto_resize (...);
> instead, but just the first column isn't any size.
> 
> Is this an ex-bug that I should do some #ifdef's to check for >= 1.2.6 or <
> 1.2.6 or should I be doing something different?
> 
> iain
> 
> -- 
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
> 
> 



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