foiegras r52 - in trunk: . src/foiegras/windows



Author: denisw
Date: Fri Feb  1 19:05:18 2008
New Revision: 52
URL: http://svn.gnome.org/viewvc/foiegras?rev=52&view=rev

Log:
2008-02-01  Denis Washington  <denisw svn gnome org>

	* src/foiegras/windows/main.py:
	Fix GTK+ warning on start.


Modified:
   trunk/ChangeLog
   trunk/src/foiegras/windows/main.py

Modified: trunk/src/foiegras/windows/main.py
==============================================================================
--- trunk/src/foiegras/windows/main.py	(original)
+++ trunk/src/foiegras/windows/main.py	Fri Feb  1 19:05:18 2008
@@ -187,12 +187,17 @@
         self._toolbar_block = self.uimanager.get_widget('/BlockToolbar')
         self._toolbar_inline = self.uimanager.get_widget('/InlineToolbar')
 
-        # Initialize Recently Used submenu
-        self._recent_menu = gtk.RecentChooserMenu(self._app.recent_manager)
-        self._recent_menu.connect('item-activated', self._recent_item_activated)
-        self._recent_menu.add_filter(self._app.recent_filter)
+        # Initialize Recently Used submenus
+        def create_recent_menu():
+            recent_menu = gtk.RecentChooserMenu(self._app.recent_manager)
+            recent_menu.connect('item-activated', self._recent_item_activated)
+            recent_menu.add_filter(self._app.recent_filter)
+            return recent_menu
+
+        self._recent_menu = create_recent_menu()
         self._menu_recent.set_submenu(self._recent_menu)
-        self._tool_open.set_menu(self._recent_menu)
+        self._recent_menu2 = create_recent_menu()
+        self._tool_open.set_menu(self._recent_menu2)
 
         self._tool_open.connect('clicked', self._open_toolbar)
 



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