Im having trouble with gtk open file dialog it will open the first time but after i closed it i cant reopen it
Ive tried casting it as different objects but i cant seem to fix it.
After attempting to reopen the dialog box it spits out gtk_dialog_run: assertion 'GTK_IS_DIALOG (dialog)' failed.
//im pretty sure my problem is with one of these lines
dialog=gtk_file_chooser_dialog_new("open",GTK_WINDOW(window),GTK_FILE_CHOOSER_ACTION_OPEN,"blah","blah","blah","blah",NULL);
g_signal_connect(button,"clicked",G_CALLBACK(gtk_dialog_run),GTK_OBJECTS(dialog));