Re: gtk-perl-list Digest, Vol 57, Issue 7



funnily enough, I have been working with selections and systray/
systray icons (ie Gtk2::StatusIcon) recently, so I could definitely
have a look at the gtk_status_icon ones probably without too much
trouble at all.



On Fri, 09 Jan 2009 12:00:20 +0000
gtk-perl-list-request gnome org wrote:

Send gtk-perl-list mailing list submissions to
      gtk-perl-list gnome org

To subscribe or unsubscribe via the World Wide Web, visit
      http://mail.gnome.org/mailman/listinfo/gtk-perl-list
or, via email, send a message with subject or body 'help' to
      gtk-perl-list-request gnome org

You can reach the person managing the list at
      gtk-perl-list-owner gnome org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of gtk-perl-list digest..."


Today's Topics:

   1. Volunteers for wrapping new API? (Torsten Schoenfeld)
   2. Re: GtkBindingSet etc (Torsten Schoenfeld)
   3. Re: GtkBindingSet etc (Kevin Ryde)
   4. Re: GtkBindingSet etc (Kevin Ryde)
   5. Re: Volunteers for wrapping new API? (Emmanuel Rodriguez)


----------------------------------------------------------------------

Message: 1
Date: Thu, 08 Jan 2009 20:43:55 +0100
From: Torsten Schoenfeld <kaffeetisch gmx de>
Subject: Volunteers for wrapping new API?
To: gtk-perl-list gnome org
Message-ID: <4966577B 9000408 gmx de>
Content-Type: text/plain; charset=UTF-8; format=flowed

Aloha,

the upcoming GNOME release 2.26 will use gtk+ 2.16 which provides new
API that we haven't wrapped in the bindings yet.  For some reason, I
seem to be unable to find the tuits to tackle this, so I'm asking
you:  Are there volunteers who are willing to help bind the new GTK+
API?

The new API is listed on 
<http://library.gnome.org/devel/gtk/2.15/api-index-2-16.html>.  New
signals and properties are automatically handled, so we don't need to
handle those.  Only new functions.  For most functions, wrapping them
consists of copying the C prototype into the relevant *.xs file and
writing a unit test for it in the corresponding *.t file.  I'd be
happy to help with the corner cases not covered by this.

-Torsten


------------------------------

Message: 2
Date: Thu, 08 Jan 2009 20:51:32 +0100
From: Torsten Schoenfeld <kaffeetisch gmx de>
Subject: Re: GtkBindingSet etc
To: gtk-perl-list gnome org
Message-ID: <49665944 3010807 gmx de>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Kevin Ryde wrote:
I was contemplating having some key or mouse bindings vaguely
configurable by putting them through a GtkBindingSet thingie.  Has
anyone used that much?  It's not wrapped is it (or just well
hidden)?

No, the whole GtkBinding thing is not wrapped.  Mainly because we had
no experience using it and because we didn't know whether it would be
useful.

There don't seem to be any GTypes associated with the various
GtkBinding types, so wrappers would need to do a bit more work than
usual to convert them to and from Perl types.  There also seems to be
a lot of namespace trampling going on (function prefixes don't match
their first argument's type), so care would have to be taken in
deciding how to represent those functions in Perl land.

But maybe you just need a small subset of this API that can be
wrapped easily?


------------------------------

Message: 3
Date: Fri, 09 Jan 2009 10:15:21 +1100
From: Kevin Ryde <user42 zip com au>
Subject: Re: GtkBindingSet etc
To: Torsten Schoenfeld <kaffeetisch gmx de>
Cc: gtk-perl-list gnome org
Message-ID: <873aftmlti fsf blah blah>
Content-Type: text/plain; charset=us-ascii

Torsten Schoenfeld <kaffeetisch gmx de> writes:

There don't seem to be any GTypes associated with the various
GtkBinding types,

Oh, yep, not even a boxed thingie.  That's a bit unfortunate.

There also seems to be
a lot of namespace trampling going on

Ah yeah.  gtk_bindings_activate() and gtk_bindings_activate_event()
just about belongs as a GtkObject methods.  That'd be ok though would
it, nothing too evil could come from say

    $obj->bindings_activate($key,$mods)
    $obj->bindings_activate_event($event)

existing?

But maybe you just need a small subset of this API that can be
wrapped easily?

Yes, that'd be all I'd think to start.  by_class() to find,
add_signal() to fill defaults, then activate() on an object and/or
the bindingset itself to dispatch.  Is there more normally needed?
Ignore the strange widget_path_pspecs and other fields to start.

In fact I wonder if you set the default bindings by parsing an "RC"
string if just the object activate funcs could work, with
GtkBindingSet not wrapped at all.


------------------------------

Message: 4
Date: Fri, 09 Jan 2009 11:37:28 +1100
From: Kevin Ryde <user42 zip com au>
Subject: Re: GtkBindingSet etc
To: gtk-perl-list gnome org
Message-ID: <87y6xll3g7 fsf blah blah>
Content-Type: text/plain; charset="us-ascii"

I wrote:

gtk_bindings_activate() and gtk_bindings_activate_event()

Indeed those two go fine, per below.

But it seems they refuse to operate on plain GtkObjects, only widgets,
because of wanting to spin keys through the per-display keymap
thingie. So I might want gtk_bindings_set_activate() too, which would
mean wrapping GtkBindingSet, however opaquely.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: GtkObject.xs.bindings.diff
Type: text/x-diff
Size: 1289 bytes
Desc: not available
URL:
<http://mail.gnome.org/archives/gtk-perl-list/attachments/20090109/c95dba81/attachment.bin>
-------------- next part -------------- A non-text attachment was
scrubbed... Name: t-entry.pl
Type: text/x-perl
Size: 1659 bytes
Desc: not available
URL:
<http://mail.gnome.org/archives/gtk-perl-list/attachments/20090109/c95dba81/attachment-0001.bin>

------------------------------

Message: 5
Date: Fri, 9 Jan 2009 07:01:28 +0100
From: "Emmanuel Rodriguez" <emmanuel rodriguez gmail com>
Subject: Re: Volunteers for wrapping new API?
To: "Torsten Schoenfeld" <kaffeetisch gmx de>
Cc: gtk-perl-list gnome org
Message-ID:
      <b85da50e0901082201x3a361045o9b59c9a87bcda4bc mail gmail com>
Content-Type: text/plain; charset=UTF-8

On Thu, Jan 8, 2009 at 8:43 PM, Torsten Schoenfeld
<kaffeetisch gmx de> wrote:
Aloha,
Ahoj,


the upcoming GNOME release 2.26 will use gtk+ 2.16 which provides
new API that we haven't wrapped in the bindings yet.  For some
reason, I seem to be unable to find the tuits to tackle this, so
I'm asking you:  Are there volunteers who are willing to help bind
the new GTK+ API?

I can give it a try as the weekend is arriving and it's cold outside
;) I don't have the most recent version of GTK nor perl Gtk2. I'm
using the stock versions provided by Ubuntu 7.10, which is not even
the most recent Ubuntu! I have a few questions:

What's the URL for perl Gtk2 trunk?
What's the best way for installing the newest Gtk2 and all it's
dependencies? How to keep synchronized with the other kind souls that
decided to help? Where can I submit the patches for review (mailing
list or RT)?


The new API is listed on
<http://library.gnome.org/devel/gtk/2.15/api-index-2-16.html>.  New
signals and properties are automatically handled, so we don't need
to handle those. Only new functions.  For most functions, wrapping
them consists of copying the C prototype into the relevant *.xs
file and writing a unit test for it in the corresponding *.t file.
I'd be happy to help with the corner cases not covered by this.

-Torsten
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list




-- 
Emmanuel Rodriguez


------------------------------

_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list


End of gtk-perl-list Digest, Vol 57, Issue 7
********************************************


-- 



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