2008-04-16 klockan 23:17 skrev Charles-Henri d'Adhémar:
> I have developed an extension for epiphany 2.20, tabforeground,
> referenced at http://live.gnome.org/Epiphany/ThirdPartyExtensions.
>
> It is probably one of the simplest extension since it makes tabs being
> opened in the foreground instead of background.
>
> The python code for epiphany 2.20 was as simple as that :
>
> #!/usr/bin/env python
> import gtk
> import epiphany
>
> def attach_tab(window, tab):
> window.jump_to_tab(tab)
> # End python script
>
> Since epiphany 2.22 I have the following error :
>
> ** (epiphany:12364): WARNING **: Python code for 'attach_tab' failed to execute
> Traceback (most recent call last):
> File "/home/chicha/.gnome2/epiphany/extensions/tabforeground.py",
> line 24, in attach_tab
> window.jump_to_tab(tab)
> AttributeError: 'epiphany.Window' object has no attribute 'jump_to_tab'
Use this instead:
tab = window.get_active_child()
And:
window.set_active_child(tab)
Good luck.
mvrgr, Wouter
--
:wq mail uws xs4all nl
web http://uwstopia.nl
i'm sorry that :: i'm sorry that i'm not like you -- porcupine tree
Attachment:
signature.asc
Description: Digital signature