Hey all.
I’ve come across a new problem
that I’m having trouble with. I need my plug-in to be able bring up
a pop-up screen so that I can get the user to enter some information. I
had it working using the windoze API and it was working fine, however,
obviously it’s not portable. So I want to do the same thing in
GTK. Problem is, I can’t seem to get gtk to bring up anything
without getting the most general error message possible.
I get the error:
Gdk-ERROR **: That is a fatal error aborting…
Ironically enough.. this error is in a pop up.
The code I’m attempting to execute is :
if(gtk_init_check(NULL,NULL)==1){
if(writeFile!=NULL){
fprintf(writeFile,"GTK
is valid");
fflush(writeFile);
}
}else{
if(writeFile!=NULL){
fprintf(writeFile,"GTK
isn't Valid");
fflush(writeFile);
}
}
GtkWidget *window=NULL;
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_widget_show (window);
gtk_main();
I get the response that “GTK is valid”
And I get the error when executing:
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
Trying to do something similar with a dialog fails when I try
to show the dialog.
I know this is a lot to read. Any help from the GUI
masters at Wireshark would be appreciated.