Wireshark-dev: [Wireshark-dev] GTK+ issues

From: "Steve Grinwis" <sgrinwis@xxxxxxx>
Date: Wed, 26 Jul 2006 15:56:55 -0400

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.

 


This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.