[gedit-latex] Fix Bibtex
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-latex] Fix Bibtex
- Date: Wed, 29 Jun 2011 08:28:37 +0000 (UTC)
commit cb48230af6467e163ae4e48a68b2cb28c5e9d86d
Author: John Stowers <john stowers gmail com>
Date: Wed Jun 29 20:20:58 2011 +1200
Fix Bibtex
latex/bibtex/views.py | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/latex/bibtex/views.py b/latex/bibtex/views.py
index 65d7c06..48e4329 100644
--- a/latex/bibtex/views.py
+++ b/latex/bibtex/views.py
@@ -58,10 +58,10 @@ class BibTeXOutlineView(BaseOutlineView):
# add grouping controls to toolbar
- self._item_none = Gtk.RadioMenuItem(None, "No Grouping")
- self._item_type = Gtk.RadioMenuItem(self._item_none, "Group by Type")
- self._item_author = Gtk.RadioMenuItem(self._item_none, "Group by Author")
- self._item_year = Gtk.RadioMenuItem(self._item_none, "Group by Year")
+ self._item_none = Gtk.RadioMenuItem.new_with_label((), "No Grouping")
+ self._item_type = Gtk.RadioMenuItem.new_with_label((self._item_none,), "Group by Type")
+ self._item_author = Gtk.RadioMenuItem.new_with_label((self._item_none,), "Group by Author")
+ self._item_year = Gtk.RadioMenuItem.new_with_label((self._item_none,), "Group by Year")
self._preferences = Preferences()
@@ -87,7 +87,7 @@ class BibTeXOutlineView(BaseOutlineView):
menu.add(self._item_year)
menu.show_all()
- tool_button = Gtk.MenuToolButton(Gtk.STOCK_SORT_DESCENDING)
+ tool_button = Gtk.MenuToolButton.new_from_stock(Gtk.STOCK_SORT_DESCENDING)
tool_button.set_menu(menu)
tool_button.show()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]