Re: [gtk-list] Re: Perl/Gtk - Limits of the bindings?



Hi, firstly, many thanks to all who replied, especially Lupus.

Paolo Molaro wrote:
> 
> Note that the next release of gtk/perl will have support for libglade
> (check the gnome-perl module in the cvs repo).
I will have a look at this. I must start again and get Gtk+, Gnome,
Glade and libglade up to date and consistent on my system. I don't know 
exactly what libglade does but I'm sure that it will help :-)

> > 2) Gtk::ScrolledWindow->set_update_policy('always', 'always');
> >    OR should that be
> >    Gtk::ScrolledWindow->hscrollbar->set_update_policy('always');
> >    Gtk::ScrolledWindow->vscrollbar->set_update_policy('always');
> 
> $scrolled_window->set_policy('always');
> or
> $hscrollbar->set_update(policy('always');
Now I'm confused, what is the difference between the scrolled_window
policy and the scrollbar update policies? Glade gives properties for both 
the [hv]scrollbar_policy and [hv]update_policy - sorry to be so dim.

I think that you can get the scrollbars of a scrolled_window in C using
gtk_scrolled_window->hscrollbar (and vscrollbar) but this is not bound.
is there another way to get the scrollbars of a scrolled_window in order
to set_update_policy? 

> > 6) I am having trouble creating pixmaps. Some widgets don't have
> >    windows and when I pack_start some I have problems doing:
> >
> >    $work->{'window'} = $widget->get_toplevel->window;
> >    $work->{'style'} = Gtk::Widget->get_default_style->bg('normal');
> >
> >    ($gdk_pixmap, $gdk_mask) = Gtk::Gdk::Pixmap->create_from_xpm(
> >        $work->{'window'}, $work->{'style'}, $found_filename);
> >    return new Gtk::Pixmap($gdk_pixmap, $gdk_mask);
> 
> Did you realize the widget before using $widget->window?
Good question, I thought I had but maybe the widgets were added with
insert_item() in a toolbar or added to a FontSelectionDialog - I'll 
do some research.
 
> >    I have been advised to use gdk_pixmap_colormap_create_from_xpm
> >    instead which I reckon is not bound yet.
> >
> > 7) With GtkImage, Glade has properties type & visual, how can I
> >    handle these?
> >
> > 8) I can replicate gtk_label_parse_uline but I cannot then call
> >    gtk_label_set_pattern to underline the accelerator key of an
> >    accel_label.
> 
> I'll have a look at this stuff tomorrow and hopefully test and commit
> the changes before going on vacation:-)
Thanks for the attention but please don't spoil your vacation, none of 
this stuff is an emergency for me.
 
> > 9) There seems to be no way to use keysyms in a portable way, are
> >    you planning to bind these or is there another good way to go?
> 
> In the following version there will be an hash table holding the
> keysym -> keyvalue mapping.
Great news, I didn't fancy all that typing :-).

I'm sorry but I have found one more - $toolbar->set_space_style('empty')

I don't mean to complain, I really love Perl/Gtk and I'm impressed that
it works so well, C and XS is all over my head :-)

Thanks again, regards, Dermot



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