gtk_widget_destroy goes SIGSEGV

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

 



Hi all,

I'm making a small Gtk application and this function (code sample below )
keeps doing segfaults when gtk_widget_destroy is called. Any tip???
<code>
void message_dialog(const gchar * message){
    /*
    *  Santa ayuda de Gtk
    */

    GtkWidget *dialog;

   /* Create the widgets */

   dialog = gtk_message_dialog_new (NULL,
                                  GTK_DIALOG_DESTROY_WITH_PARENT,
                                  GTK_MESSAGE_ERROR,
                                  GTK_BUTTONS_CLOSE,
                                  "%s",
                                  message);

   /* Add the label, and show everything we've added to the dialog. */
    gtk_dialog_run(GTK_DIALOG(dialog));
    gtk_widget_destroy(dialog);
}
</code>

Thanks in advance
-- 
Nothing's gonna change my world....
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux