[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
callbacks - debug
- From: David Coquil <dcoquil lisi insa-lyon fr>
- To: gtk-app-devel-list gnome org
- Subject: callbacks - debug
- Date: Tue, 9 Oct 2001 02:33:23 +0000
Hi,
Signal callabcks are generally of the form :
void callback_func(GtkWidget *widget, gpointer data)
and event callbacks are generally of the form :
void callback_func(GtkWidget *widget, GdkEvent *event, gpointer data)
I wonder how much I can reasonably change this in my own callbacks ? Can I
declare callback functions with no widget/data if I don't have any use for
those parameters ? Same with the event param in the case of event callbacks
?
>From my loose tries, it doesn't seem to create problems, but is there any
catch ?
And now for something completly unrelated :
when I run my app under gdb, it crashes one time out of two with :
Program received signal SIGUSR1, User defined signal 1.
0x40487047 in pause () from /lib/libc.so.6
#backtrace
#0 0x40487047 in pause () from /lib/libc.so.6
#1 0x40373a73 in esd_open_sound () from /usr/lib/libesd.so.0
#2 0x40364eca in gnome_sound_init () from /usr/lib/libgnome.so.32
#3 0x40366bda in gnome_paper_convert_to_points () from /usr/lib/libgnome.so.32
#4 0x4036cb27 in poptSetExecPath () from /usr/lib/libgnomesupport.so.0
#5 0x4036caef in poptSetExecPath () from /usr/lib/libgnomesupport.so.0
#6 0x4036d466 in poptGetNextOpt () from /usr/lib/libgnomesupport.so.0
#7 0x40363ba9 in gnomelib_parse_args () from /usr/lib/libgnome.so.32
#8 0x400858b9 in gnome_init_with_popt_table () from /usr/lib/libgnomeui.so.32
#9 0x40085926 in gnome_init () from /usr/lib/libgnomeui.so.32
#10 0x804ae54 in main (argc=1, argv=0xbffffaf4) at gminifoot.c:11
gminifoot.c:11 is a call to gnome_init
The faq recommends running apps under gdb with --sync but obviously this
doesn't change anything in this case. Any ideas, please ?
--
David Coquil
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]