Re: Toolbar->append_element()



Dermot,

do you have a code example?

On Sat, Nov 02, 2002 at 05:50:16AM +0000, Dermot Musgrove wrote:
goran kirra net wrote:

Dermot,

I tested and the return is correct in my tests
(added a button which is returned as a Gtk2::Button
(subclass of Gtk2::Widget)

If it is not fixed by someone else
please file a bug report with code example on
the project page.
I have worked out what the problems are here:

1) I was converting GTK_TOOLBAR_CHILD_RADIOBUTTON to 'radiobutton' as
I used to in old Gtk-Perl as I thought that all the enums were there.
When I changed it to Gtk2::Toolbar->CHILD_RADIOBUTTON all works.
Will all these enums be available sometime in the future?

they should, indeed.

2) There was no error returned when I used 'radiobutton' but the
returned widget was a GObject - should this be possible?

quietly returning a GObject is the default,
perhaps this should be a "noisy return of undef"
instead.

/göran







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]