Re: Segfaulting dialogue declaration
- From: Sylvain FORET <foret rsbs anu edu au>
- To: jonathan hayward pobox com
- Cc: gtk-list gnome org
- Subject: Re: Segfaulting dialogue declaration
- Date: Tue, 02 Aug 2005 08:51:21 +1000
Jonathan Hayward wrote:
I get a segfault on:
window = gtk_dialog_new_with_buttons("The Minstrel's Song:
Question", NULL,
GTK_DIALOG_MODAL, "Yes", "No");
which also appears if I omit ', "No"'.
Backtrace gives:
#0 0x0027fc2d in g_strdup () from /usr/lib/libglib-2.0.so.0
#1 0x00320d85 in g_value_array_copy () from /usr/lib/libgobject-2.0.so.0
#2 0x00304064 in g_object_new_valist () from /usr/lib/libgobject-2.0.so.0
#3 0x003041dc in g_object_new () from /usr/lib/libgobject-2.0.so.0
#4 0x00654799 in gtk_button_new_from_stock ()
from /usr/lib/libgtk-x11-2.0.so.0
#5 0x0069cdae in gtk_dialog_add_button () from /usr/lib/libgtk-x11-2.0.so.0
#6 0x0069ce9a in gtk_dialog_add_button () from /usr/lib/libgtk-x11-2.0.so.0
#7 0x0069d2a5 in gtk_dialog_new_with_buttons ()
from /usr/lib/libgtk-x11-2.0.so.0
#8 0x0805a11d in tms_confirm (prompt=0x8091bd1 "Would you like to
confirm?",
default_value=1) at gtk.c:665
#9 0x0805a475 in gtk_specific_init (argc=0xbf9566d0, argv=0xbf9566d4)
at gtk.c:463
#10 0x080497e5 in main (argc=1, argv=0xbf956754) at test.c:6
Is there a problem with my strings?
--
++ Jonathan Hayward, jonathan hayward pobox com
<mailto:jonathan hayward pobox com>
** To see an award-winning website with stories, essays, artwork,
** games, and a four-dimensional maze, why not visit my home page?
** All of this is waiting for you at http://JonathansCorner.com
** If you'd like a Google Mail (gmail.com <http://gmail.com>) account,
please tell me!
Just read:
http://developer.gnome.org/doc/API/2.0/gtk/GtkDialog.html#gtk-dialog-new-with-buttons
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]