After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 345837 - ephy_find_toolbar_open not available for Python extensions
ephy_find_toolbar_open not available for Python extensions
Status: RESOLVED FIXED
Product: epiphany-extensions
Classification: Deprecated
Component: general
2.14.x
Other All
: Normal normal
: ---
Assigned To: epiphany-extensions-maint
epiphany-extensions-maint
Depends on:
Blocks:
 
 
Reported: 2006-06-24 20:59 UTC by Stefan Stuhr
Modified: 2006-06-25 20:29 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14



Description Stefan Stuhr 2006-06-24 20:59:15 UTC
Please describe the problem:
The ephy_find_toolbar_open function (from ephy-find-toolbar.c) is not availabe for Python extensions.

void
ephy_find_toolbar_open (EphyFindToolbar *toolbar,
			gboolean links_only,
			gboolean typing_ahead)

I need this function in an extension. I have tried to work around the problem by calling find_toolbar.show() and giving it the focus, but I can't find any way to set links_only and typing_ahead.

Steps to reproduce:
>>> find_toolbar = window.get_find_toolbar()
>>> find_toolbar.open(True, True)

Actual results:
Traceback (most recent call last):
  • File "/usr/lib/epiphany/2.14/extensions/console.py", line 271 in run
    r = eval(cmd, self.namespace, self.namespace)
  • File "<string>", line 0 in ?
AttributeError: '__main__.EphyFindToolbar' object has no attribute 'open'

Expected results:
The find toolbar should open, with the chosen links_only and typing_ahead settings.

Does this happen every time?
Yes.

Other information:
Comment 1 Jean-François Rameau 2006-06-25 20:29:11 UTC
Thanks for the bug report !

Fixed on CVS HEAD and not on GNOME 2.14 branch because we're only one 2.14 GNOME release left.

2006-06-25  Jean-François Rameau  <jframeau@cvs.gnome.org>

	* src/epiphany.defs:
	* src/epiphany.override:
	* src/Makefile.am:

	Add EphyFindToolbar type to Python binding.

Nevertheless, the following patch applies smoothly to GNOME 2.14: 

http://perso.orange.fr/jf.rameau/patches/ephy-toolbar.diff