Re: [glade--]text entry on glagemm
Christof Petig <[email protected]>
| Newsgroups | gmane.comp.gnome.glademm |
|---|---|
| Organization | Adolf Petig GmbH & Co. KG |
| Message-ID | <[email protected]> |
friman wrote:
> Hello!
> i tried for some days to create a window with textentry and button that
> when press the butto,, the terminal printed the string in the entry on
> that time.
> and i don't know how thw callback of the button know from where it need
> to get the text, in other words, how can i send the entry to the
> callback of the button.
> if someone had code, that made by glademm for that purpose, i will very
> happy if he will send it to me.
> moti
>
Hi Friman,
Simply attach some data to the callback (signal->data). If you insert
'true' or 'false' you will get a bool argument, if you put a number in,
you will get an int, else you will get a string.
Watch the _new files for proposed changes to your files (e.g.
window1.hh_new).
Christof