gtk_widget_destroy



Hi!

I'm creating a window from a nother window, something
like a message box, but when I want to unload this
window;

should I use gtk_widget_destroy?

Because I'm connecting this signal to a button clicked
event:

gtk_signal_connect (GTK_OBJECT (btnClose), "clicked",
                    GTK_SIGNAL_FUNC
(on_btnClose_clicked), NULL)


// callback function

void on_btnClose_clicked (GtkButton *button, gpointer
data)
  {
    GtkWidget *window = (GtkWidget *)data;

    gtk_widget_destory (window);
  }


/***********
It doesn't work, Gtk tells me that window is not an
Gtk Widget...

There's another way to unload a window or what I'm
doing wrong...

Thanks!

__________________________________________________
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/




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