[gedit-latex/gnome-3-0] base: correctly create action with MenuToolItem as proxy widgets.
- From: Jose Aliste <jaliste src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-latex/gnome-3-0] base: correctly create action with MenuToolItem as proxy widgets.
- Date: Tue, 28 Jun 2011 23:04:27 +0000 (UTC)
commit de7917e20a45ad5b23a9986ced456c6de3b661ff
Author: Josà Aliste <jaliste src gnome org>
Date: Mon Jun 27 22:53:30 2011 -0400
base: correctly create action with MenuToolItem as proxy widgets.
Fixes bug #653303
latex/base/__init__.py | 16 ++--------------
1 files changed, 2 insertions(+), 14 deletions(-)
---
diff --git a/latex/base/__init__.py b/latex/base/__init__.py
index d83486a..0c7b603 100644
--- a/latex/base/__init__.py
+++ b/latex/base/__init__.py
@@ -171,21 +171,11 @@ class Template(object):
from gi.repository import GObject
-#
-# workaround for MenuToolItem
-# see http://library.gnome.org/devel/pygtk/stable/class-gtkaction.html#method-gtkaction--set-tool-item-type
-#
-# we prepend the plugin name to be sure that it's a unique symbol
-# see https://sourceforge.net/tracker/index.php?func=detail&aid=2599705&group_id=204144&atid=988428
-#
class GeditLaTeXPlugin_MenuToolAction(Gtk.Action):
__gtype_name__ = "GeditLaTeXPlugin_MenuToolAction"
-# GObject.type_register(GeditLaTeXPlugin_MenuToolAction)
-# needs PyGTK 2.10, but no such workaround exists in PyGObject + Introspection
-# https://bugzilla.gnome.org/show_bug.cgi?id=590335
-# GeditLaTeXPlugin_MenuToolAction.set_tool_item_type(Gtk.MenuToolButton)
-
+ def do_create_tool_item(self):
+ return Gtk.MenuToolButton()
class Action(object):
"""
@@ -209,8 +199,6 @@ class Action(object):
@param window_context: a WindowContext object to pass when this action is activated
"""
if self.menu_tool_action:
- #FIXME: This is not supported yet...
- #https://bugzilla.gnome.org/show_bug.cgi?id=653303
action_clazz = GeditLaTeXPlugin_MenuToolAction
else:
action_clazz = Gtk.Action
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]