[gnote] Fix menu usage in backlinks
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Fix menu usage in backlinks
- Date: Wed, 1 Jun 2011 20:09:26 +0000 (UTC)
commit 14cea93282d9aae279d2405a141d8a941236b2c4
Author: Aurimas Ä?ernius <aurisc4 gmail com>
Date: Tue May 31 22:21:52 2011 +0300
Fix menu usage in backlinks
Adapt to changes in Gtkmm 3.0.
src/addins/backlinks/backlinksnoteaddin.cpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/addins/backlinks/backlinksnoteaddin.cpp b/src/addins/backlinks/backlinksnoteaddin.cpp
index eed23c1..e637fe5 100644
--- a/src/addins/backlinks/backlinksnoteaddin.cpp
+++ b/src/addins/backlinks/backlinksnoteaddin.cpp
@@ -122,10 +122,10 @@ void BacklinksNoteAddin::update_menu()
//
// Clear out the old list
//
- Gtk::MenuShell::MenuList menu_items = m_menu->items();
- for(Gtk::MenuShell::MenuList::reverse_iterator iter = menu_items.rbegin();
+ std::vector<Gtk::Widget*> menu_items = m_menu->get_children();
+ for(std::vector<Gtk::Widget*>::reverse_iterator iter = menu_items.rbegin();
iter != menu_items.rend(); ++iter) {
- m_menu->remove(*iter);
+ m_menu->remove(**iter);
}
//
@@ -141,7 +141,7 @@ void BacklinksNoteAddin::update_menu()
}
// If nothing was found, add in a "dummy" item
- if (m_menu->items().size() == 0) {
+ if (m_menu->get_children().size() == 0) {
Gtk::MenuItem *blank_item = manage(new Gtk::MenuItem(_("(none)")));
blank_item->set_sensitive(false);
blank_item->show_all ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]