normal gtk code mixed with libglade



is there some known problem about using normal gtk code mixed with
libglade???

i explain myself better

when i use libglade to show a window and then i use normal gtk code
(without liglade) to show another window i receive a strange segfault

the first window, showed with libglade, is showed with gtk_dialog_run
and closed with gtk_widget_destroy; but when i debug it remains visible
until i stop the debug

moreover, the first window is into a library called from the program

this is the gdb backtrace

#0  0xb76921c0 in strcmp () from /lib/tls/libc.so.6
#1  0xb78ee004 in g_str_equal () from /usr/lib/libglib-2.0.so.0
#2  0xb78c5156 in g_hash_table_lookup () from /usr/lib/libglib-2.0.so.0
#3  0xb78be607 in g_intern_string () from /usr/lib/libglib-2.0.so.0
#4  0xb79a1846 in g_signal_newv () from /usr/lib/libgobject-2.0.so.0
#5  0xb79a1c4c in g_signal_new_valist ()
from /usr/lib/libgobject-2.0.so.0
#6  0xb79a1d1c in g_signal_new () from /usr/lib/libgobject-2.0.so.0
#7  0xb7dbc304 in gtk_menu_item_new_with_label ()
from /usr/lib/libgtk-x11-2.0.so.0
#8  0xb79ae3bc in g_type_class_ref () from /usr/lib/libgobject-2.0.so.0
#9  0xb79945a9 in g_object_newv () from /usr/lib/libgobject-2.0.so.0
#10 0xb79949b7 in g_object_new_valist ()
from /usr/lib/libgobject-2.0.so.0
#11 0xb7994b70 in g_object_new () from /usr/lib/libgobject-2.0.so.0
#12 0xb7dbc055 in gtk_menu_item_new () from /usr/lib/libgtk-x11-2.0.so.0
#13 0xb7dbc07f in gtk_menu_item_new_with_mnemonic ()
from /usr/lib/libgtk-x11-2.0.so.0
#14 0x0804e7b1 in crea_corpo (gda_client=0x8083520, gda_conn=0x816b650,
window=0x8082010, correlati=0,
    visualizza=0, data=0x0, id=0) at corpo.c:1670

why is there a call to gtk_menu_item_new_with_label???

i use the same library that show the first into a program that use only
libglade and it works


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