[libglade] nx the same window
- From: Uzytkownik <uzytkownik2 poczta onet pl>
- To: gtk-app-devel-list gnome org
- Subject: [libglade] nx the same window
- Date: Fri, 22 Apr 2005 07:27:27 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
I've got callback function:
void on_BUstaw_clicked(GtkWidget *widget, gpointer *_data)
{
Data* data = (Data*)_data;
if(data->id == 20)
{
DEB(g_print("id == 20\n"));
return;
}
int i = data->id - 1;
if(data->ust[i] == NULL)
data->ust[i] = glade_xml_new("ustawienia.glade", NULL, NULL);
else
gtk_widget_show(glade_xml_get_widget(data->ust[i], "WUstaw"));
}
When I call it 2de time is unlocated memory.
I'd like to call the same window with saved positions of radio and
checkboxs ect. (close of created window should only hide it).
How can I do it?
Regards.
- --
Linux user: #376500 (patrz http://counter.li.org/)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFCaIs+TCh1hBPsbHURA/pcAJ9s7GAHHqQwJP54ZHX6FyYksQ+MkwCdGbUK
EU9vVvQL9tqlqwaQtzWiLkQ=
=O49J
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]