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

RE: gtk_widget_destroy "doesn't work"



   gtk_widget_destroy(GTK_WIDGET(data));
   while (g_main_iteration(FALSE)) 
   gtk_main_quit();

> -----Original Message-----
> From: gtk-app-devel-list-admin@gnome.org [mailto:gtk-app-devel-list-
> admin@gnome.org] On Behalf Of Ingvar Tjostheim
> Sent: Wednesday, January 07, 2004 12:04 PM
> To: gtk-app-devel-list@gnome.org
> Subject: gtk_widget_destroy "doesn't work"
> 
> Hi.
> I'm pretty new with GTK, and I have a problem with gtk_widget_destroy.
> 
> I have a window with some option boxes and a combobox. When user
clicks OK
> I want the window to go away for the application to create a OpenGL
window
> and do other stuff.
> 
> My problem is that the window does not go away, but gets locked. The
> application continues with what ever I want it to, though.
> The problem is the same if I use gtk_widget_hide.
> 
> This is briefly what the OK-button function looks like:
> 
> void btnOKClicked (GtkButton* button, gpointer data)
> {
> 
>   //read which optionbox is checked
>    ....
> 
>   //read what the combo box says
>    .....
> 
>   gtk_widget_destroy(GTK_WIDGET(data));
> 
>   gtk_main_quit();
> 
>   startCom( read values..... );
> }
> 
> And the function is connected this way:
>   gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC
> (btnOKClicked), window);
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




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