[Glade-users] Newbie libglade advice please?
- From: tvb at gnome.org (Tristan Van Berkom)
- Subject: [Glade-users] Newbie libglade advice please?
- Date: Mon Aug 22 09:37:15 2005
Kim Adil wrote:
[...]
gboolean on_connect_cancel_button_clicked(GtkWidget *button)
{
gtk_widget_destroy(gtk_widget_get_toplevel(button));
Hmmm, If I'm not mistaken, you can set the user_data in glade
to pass you the object you want as user data to the callback.
Also, you should add `g_object_unref (G_OBJECT (xml));' to balance
the calls to `glade_xml_new (...);' the widgets created by the
xml are not owned by the xml so there is no danger in freeing up
those resources :)
Cheers
-Tristan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]