View previous topic :: View next topic |
Author |
Message |
brianhsu
Joined: 17 Jan 2007 Posts: 9 Location: Taiwan
|
Posted: Wed Jan 31, 2007 1:38 am Post subject: Can't get vbox of Dialog |
|
|
In the GTK+, GtkDialog have two main part.
gtkDialog->vbox and gtkDialog->actionArea.
gtkDialog->actionArea is where the button placed, and gtkDialog->vbox is where message or other widget placed.
In GTK+, if I want put some widget into a dialog, I can just put it into gtkDialog->vbox using gtk_box_pack_start().
But the class Dialog of DUIT doesn't have member named vbox, neither have any member function to access the vbox part.
So, what should I do if I want put some widget(ex.a label) into the dialog? |
|
Back to top |
|
|
Ant
Joined: 06 Mar 2004 Posts: 306 Location: Canada
|
Posted: Wed Jan 31, 2007 9:02 am Post subject: Re: Can't get vbox of Dialog |
|
|
brianhsu wrote: | In the GTK+, GtkDialog have two main part.
gtkDialog->vbox and gtkDialog->actionArea.
gtkDialog->actionArea is where the button placed, and gtkDialog->vbox is where message or other widget placed.
In GTK+, if I want put some widget into a dialog, I can just put it into gtkDialog->vbox using gtk_box_pack_start().
But the class Dialog of DUIT doesn't have member named vbox, neither have any member function to access the vbox part.
So, what should I do if I want put some widget(ex.a label) into the dialog? |
There are a some cases where direct access to the data struct is necessary.
(Sounds to me the Gtk+ API should be extended to avoid that)
Duit should wrap the common ones.
This one should definitively be added - I'll do it.
thank you for pointing this out.
Ant |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|