gtkrc double free or corruption



I'm creating a simple project (Just a single window with a button that
display a message box when clicked) with glade-2 and forcing the user
to use Orade Theme with gtk_rc_parse. My program crashed after the
first click if the user had already set the theme to Orade. I'm using
Fedora core 6. Thanks.

Orade Theme.
(http://art.gnome.org/download/themes/gtk2/1309/GTK2-Orade.tar.gz)

main.c
------

int
main (int argc, char *argv[])
{
 GtkWidget *window1;

 gtk_rc_parse ("/home/user/.themes/Orade/gtk-2.0/gtkrc");

 gtk_set_locale ();
 gtk_init (&argc, &argv);

 add_pixmap_directory (PACKAGE_DATA_DIR "/" PACKAGE "/pixmaps");

 window1 = create_window1 ();
 gtk_widget_show (window1);

 gtk_main ();
 return 0;
}

callback.c
----------

void
on_button1_clicked                     (GtkButton       *button,
                                       gpointer         user_data)
{
 GtkWidget *msgbox;
 msgbox = gtk_message_dialog_new (NULL,
GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_INFO, GTK_BUTTONS_CLOSE,
"Foo");
 gtk_window_set_keep_above (GTK_WINDOW(msgbox), TRUE);
 gtk_dialog_run (GTK_DIALOG (msgbox));
 gtk_widget_destroy(msgbox);
}



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