Dynamically adding widgets to a window on button click
- From: Harinandan S <harinandans gmail com>
- To: gtk-list <gtk-list gnome org>
- Subject: Dynamically adding widgets to a window on button click
- Date: Sat, 28 Mar 2009 18:59:45 +0530
Hi All,
I am trying to add widgets to a window on clicking a button. When a button is clicked, in the callback I add a few buttons and entry boxes to a vbox and add attach it to another vbox and show all the widgets created.
However, I notice that it is not showing the widgets I've created when I click the button. Its showing the widgets added if I call the callback function myself while creating the window before calling gtk_main();
Is this approach right to add widgets at runtime to a window?
Regards,
Harinandan S
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]