[gedit-latex] FIXME: Toolbars with menus via gtkuimanager are impossible



commit 181c0aa86336577237a7b1002eead1b3217b080c
Author: John Stowers <john stowers gmail com>
Date:   Fri Jun 24 15:25:47 2011 +1200

    FIXME: Toolbars with menus via gtkuimanager are impossible
    
    	* See https://bugzilla.gnome.org/show_bug.cgi?id=653303

 latex/base/__init__.py   |    9 ++++++---
 latex/base/decorators.py |    3 ---
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/latex/base/__init__.py b/latex/base/__init__.py
index 9e0ece1..c46a2e9 100644
--- a/latex/base/__init__.py
+++ b/latex/base/__init__.py
@@ -181,9 +181,10 @@ from gi.repository import GObject
 class GeditLaTeXPlugin_MenuToolAction(Gtk.Action):
 	__gtype_name__ = "GeditLaTeXPlugin_MenuToolAction"
 
-#GObject.type_register(GeditLaTeXPlugin_MenuToolAction)
-# needs PyGTK 2.10
-#GeditLaTeXPlugin_MenuToolAction.set_tool_item_type(Gtk.MenuToolButton)
+# 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)
 
 
 class Action(object):
@@ -208,6 +209,8 @@ 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
diff --git a/latex/base/decorators.py b/latex/base/decorators.py
index e8ab7d4..89c3c07 100644
--- a/latex/base/decorators.py
+++ b/latex/base/decorators.py
@@ -160,9 +160,6 @@ class GeditWindowDecorator(IPreferencesMonitor):
 		self._main_box.pack_start(self._toolbar, False, True, 0)
 		self._main_box.reorder_child(self._toolbar, 2)
 		
-		#self._toolbar.show()
-		self._toolbar.hide()
-	
 	def _init_tab_decorators(self):
 		"""
 		Look for already open tabs and create decorators for them



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]