[Sugar-devel] [PATCH Browse] Remove disable tabs hack
Anish Mangal
anish at activitycentral.com
Fri Apr 20 12:07:17 EDT 2012
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri 20 Apr 2012 09:21:54 PM IST, Rafael Ortiz wrote:
>
> On Fri, Apr 20, 2012 at 9:11 AM, Manuel Quiñones <manuq at laptop.org
> <mailto:manuq at laptop.org>> wrote:
>
> This is not be useful anymore, was a bug related to xulrunner and
> cairo.
>
> Signed-off-by: Manuel Quiñones <manuq at laptop.org
> <mailto:manuq at laptop.org>>
> ---
> webactivity.py | 16 +---------------
> 1 files changed, 1 insertions(+), 15 deletions(-)
>
> diff --git a/webactivity.py b/webactivity.py
> index fe47fdc..0d317d8 100644
> --- a/webactivity.py
> +++ b/webactivity.py
> @@ -172,19 +172,6 @@ class WebActivity(activity.Activity):
> self._tabbed_view = TabbedView()
> self._tabbed_view.connect('focus-url-entry',
> self._on_focus_url_entry)
>
> - # HACK
> - # Currently, the multiple tabs feature crashes the Browse
> activity
> - # on cairo versions 1.8.10 or later. The exact cause for this
> - # isn't exactly known. Thus, disable the multiple tabs
> feature
> - # if we come across cairo versions >= 1.08.10 and < 11000
> - # More information can be found here:
> - #
> http://lists.sugarlabs.org/archive/sugar-devel/2010-July/025187.html
> - self._disable_multiple_tabs = cairo.cairo_version() >= 10810\
> - and cairo.cairo_version() < 11000
> - if self._disable_multiple_tabs:
> - logging.warning('Not enabling the multiple tabs
> feature due'
> - ' to a bug in cairo/mozilla')
> -
> self._tray = HTray()
> self.set_tray(self._tray, Gtk.PositionType.BOTTOM)
> self._tray.show()
> @@ -470,8 +457,7 @@ class WebActivity(activity.Activity):
> _logger.debug('keyboard: Reload')
> browser.reload()
> elif Gdk.keyval_name(event.keyval) == "t":
> - if not self._disable_multiple_tabs:
> - self._tabbed_view.add_tab()
> + self._tabbed_view.add_tab()
> else:
> return False
>
> --
> 1.7.7.6
>
>
> +1. thanks for erasing this code.
>
>
As the original author of this hack, I would very much like to see this
go, so +10 :-)
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> <mailto:Sugar-devel at lists.sugarlabs.org>
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
>
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
- --
Anish Mangal
Dextrose Project Manager
Activity Central
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJPkYm1AAoJEBoxUdDHDZVpbYcH/jI2m2cnhCR15afe3aCaECvh
M6iOYv0891CY7FVcg1xG4opJyP7UefH3HWenNCgKsqBV6ZQvrJDHuhAXONTJMmXQ
L7zHvo0ko0swG13IbjNetYuxOm/3A1GFwYWjLy9EO4E/qGiOq++Nv5i/LImA9ODF
G13xnAdlZQOnrvl+HX0DBZYpLsyn9AhTaV1eG79xyBp+VfGIFnV29+xGfFcXkV62
vRD/JCyAigovRd2fMpD+3mBFVCIcrYBoTtZ+NB7tabYYhPoT2ErtNxiz7bi+vJ09
27b9d5uNnpSv4DND7KaadFxfgzPjtDZqMuyiEWchX9SfMgiszXPT4sP9Okraqzk=
=kOeo
-----END PGP SIGNATURE-----
More information about the Sugar-devel
mailing list