Re: [gtk-list] Making gtk+ application with gnome stock buttons




On 25-Jan-00 Havoc Pennington wrote: 
>  Joachim Backes <backes@rhrk.uni-kl.de> writes:
> > 
> > GLib-CRITICAL **: file gstring.c: line 331 (g_string_prepend): assertion `val != NULL' failed.
>  
>  Use a debugger, possibly in combination with the --g-fatal-warnings
>  command line option, and find out where the first warning happens.
>  
>  Havoc

Hi, Havoc, 
this was my previous email:

        I'm using gtk+ 1.2.6 and making a gtk application using glade 0.5.5.
        When choosing "gnome support" in the project options and choosing
        stock button layout for a push button, then my application crashes
        with the following messages:

        GLib-CRITICAL **: file gstring.c: line 331 (g_string_prepend): assertion `val != NULL' faile
        d.

        GLib-CRITICAL **: file gstring.c: line 331 (g_string_prepend): assertion `val != NUL
        L' failed.

        GLib-CRITICAL **: file gstring.c: line 331 (g_string_prepend): assertion `val != NULL' faile
        d.

        GLib-CRITICAL **: file gstring.c: line 331 (g_string_prepend): assertion `val != NULL' faile
        d.

        GLib-CRITICAL **: file gstring.c: line 331 (g_string_prepend): assertion `val != NULL' faile
        d.

        GLib-CRITICAL **: file gstring.c: line 331 (g_string_prepend): assertion `val != NULL' faile
        d.

        GLib-CRITICAL **: file gstring.c: line 331 (g_string_prepend): assertion `val != NULL' faile
        d.
        IMLIB ERROR: Cannot allocate XImage buffer

        Gdk-CRITICAL **: file gdkwindow.c: line 1406 (gdk_window_get_visual): assertion `window != N
        ULL' failed.

I found out the following:

1. Responsible for the "GLib-CRITICAL **: file gstring.c: line 331" messages is the call

        gnome_app_fill_menu (GTK_MENU_SHELL (menubar1), menubar1_uiinfo,NULL, FALSE, 0);

2. Responsible for the crash (IMLIB error) is the call

        Pushb_save = gnome_stock_button (GNOME_STOCK_BUTTON_OK);

   Traceback:  0 gnome_stock_paint(stock = 0x10059b18, pixmap = 0x10059b78) ["/usr/sc/backes/Softwar
e/gnome-libs-1.0.55/libgnomeui/gnome-stock.c":363, 0x5ff505f0]
   1 gnome_stock_state_changed(widget = 0x10059b18, prev_state = GTK_STATE_NORMAL=0) ["/usr/sc/backe
s/Software/gnome-libs-1.0.55/libgnomeui/gnome-stock.c":458, 0x5ff50b10]
   2 gnome_stock_set_icon(stock = 0x10059b18, icon = 0x1002a3d0 = "Button_Ok") ["/usr/sc/backes/Soft
ware/gnome-libs-1.0.55/libgnomeui/gnome-stock.c":601, 0x5ff51080]
   3 gnome_stock_new_with_icon(icon = 0x1002a3d0 = "Button_Ok") ["/usr/sc/backes/Software/gnome-libs
-1.0.55/libgnomeui/gnome-stock.c":619, 0x5ff5115c]
   4 gnome_stock_pixmap_widget(window = (nil), icon = 0x1002a3d0 = "Button_Ok") ["/usr/sc/backes/Sof
tware/gnome-libs-1.0.55/libgnomeui/gnome-stock.c":1274, 0x5ff5266c]
   5 stock_button_from_entry(type = 0x1002a3d0 = "Button_Ok", entry = (nil)) ["/usr/sc/backes/Softwa
re/gnome-libs-1.0.55/libgnomeui/gnome-stock.c":1430, 0x5ff52e80]
   6 gnome_stock_button(type = 0x1002a3d0 = "Button_Ok") ["/usr/sc/backes/Software/gnome-libs-1.0.55
/libgnomeui/gnome-stock.c":1451, 0x5ff52f48]
   7 create_xgsf_win() ["/usr/sc/backes/xgsf/xgsf_win_src.c":233, 0x10011ef8]
   8 main(argc = 1, argv = 0x7ffb7ec4) ["/usr/sc/backes/xgsf/xgsf.main.c":94, 0x1000ac2c]
   9 __start() ["/xlv55/kudzu-apr12/work/irix/lib/libc/libc_n32_M3/csu/crt1text.s":177, 0x10004578]

Important: Both calls are located in the file generated by glade  ..._src.c

Regards

Joachim Backes

--

Joachim Backes <backes@rhrk.uni-kl.de>       | Univ. of Kaiserslautern
Computer Center, Supercomputing Division     | Phone: +49-631-205-2438 
D-67653 Kaiserslautern, PO Box 3049, Germany | Fax:   +49-631-205-3056 
---------------------------------------------+------------------------
WWW: http://sgi400.rhrk.uni-kl.de/home/staff/backes.html  



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