Re: Click and DESTROY



On Thu, 2002-07-11 at 16:50, Wolfgang Draxinger wrote:
Ok, implement

void eventBtnOk(GtkButton *button)
{
/*do your event handling here*/
gtk_widget_destroy(button);
}


I think you meant,

    GtkWidget *window;

    /*
     * Get the handle the toplevel parent window to destroy it.
     */

    window = gtk_widget_get_toplevel (GTK_WIDGET (button));

    gtk_widget_destroy (window);

-- 
regards,

Luciano Chavez

lnx1138 us ibm com          
http://evms.sourceforge.net




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