Re: [pygtk] PyGObject timeout_add error

2011-06-05 Thread Just Fill Bugs

On 06/05/2011 05:19 AM, Arjan Molenaar wrote:

Hi all,

In the course of porting Gaphas, I ran into the same issue Timo described 
several months ago: somehow it is not possible to call timeout_add(1, f).

The same issue I see for GLib.idle_add.



Accord to http://git.gnome.org/browse/pygobject/tree/pygi-convert.sh , 
you have to use GObject.timeout_add() now.





___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


Re: [pygtk] PyGObject timeout_add error

2011-06-05 Thread Arjan Molenaar
Thanks,

Indeed, when calling it from GObject it works as expected. But timeout_add is 
not defined in the GObject gir file.

Regards,

Arjan

On 5 Jun 2011, at 10:52, Just Fill Bugs wrote:

> On 06/05/2011 05:19 AM, Arjan Molenaar wrote:
>> Hi all,
>> 
>> In the course of porting Gaphas, I ran into the same issue Timo described 
>> several months ago: somehow it is not possible to call timeout_add(1, f).
>> 
>> The same issue I see for GLib.idle_add.
>> 
> 
> Accord to http://git.gnome.org/browse/pygobject/tree/pygi-convert.sh , you 
> have to use GObject.timeout_add() now.
> 
> 
> 
> 
> ___
> pygtk mailing list   pygtk@daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/

___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


[pygtk] Enabling scroll adjustments in GI

2011-06-05 Thread Arjan Molenaar
Hi,

Next hurdle in porting Gaphas is that Gaphas' view class is managaing 
adjustments by itself.

On class level I used to call 
View.set_set_scroll_adjustments_signal("set-scroll-adjustments") to set the 
signal that should be emited when adjustments are changing on module level. 
This does not seem to work for with GI.

How can I set the scroll adjustments signal?

Regards,

Arjan


PS. As a side note: how is this supposed to work with GTK3, as there is not 
set_scroll_adjustments_signal call there it seems?

___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


Re: [pygtk] Enabling scroll adjustments in GI

2011-06-05 Thread John Stowers

> 
> 
> PS. As a side note: how is this supposed to work with GTK3, as there is not 
> set_scroll_adjustments_signal call there it seems?

This isn't really your question, but GTK2 via GI is not supported. The
annotations in GTK2 are not up to date.

John


___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


Re: [pygtk] Enabling scroll adjustments in GI

2011-06-05 Thread Just Fill Bugs

On 06/06/2011 04:51 AM, Arjan Molenaar wrote:

Hi,

Next hurdle in porting Gaphas is that Gaphas' view class is managaing 
adjustments by itself.

On class level I used to call 
View.set_set_scroll_adjustments_signal("set-scroll-adjustments") to set the 
signal that should be emited when adjustments are changing on module level. This does not 
seem to work for with GI.

How can I set the scroll adjustments signal?

Regards,

Arjan


PS. As a side note: how is this supposed to work with GTK3, as there is not 
set_scroll_adjustments_signal call there it seems?



Cannot you override the widget.set_scroll_adjustments() and emit 
whatever signals you wanted from there?


From the reference, it said:

set_scroll_adjustment_signal This signal is emitted when a widget of 
this class is added to a scrolling aware parent, 
gtk_widget_set_scroll_adjustments() handles the emission. Implementation 
of this signal is optional.



___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/