~ubuntu-branches/ubuntu/vivid/gnote/vivid-proposed

« back to all changes in this revision

Viewing changes to src/addins/backlinks/backlinksnoteaddin.cpp

  • Committer: Package Import Robot
  • Author(s): Vincent Cheng
  • Date: 2011-09-24 20:18:37 UTC
  • mfrom: (1.3.11 upstream)
  • Revision ID: package-import@ubuntu.com-20110924201837-39jpl1odhsub2956
Tags: 0.8.0-1
* New upstream release, featuring GTK+ 3 port.
  - Add versioned build dependency on libglibmm-2.4-dev (>= 2.28).
  - Replace build dependency on libgtkmm-2.4-dev with libgtkmm-3.0-dev.
  - Remove build dependencies on the following packages:
    - libdbus-c++-dev
    - libgconf2-dev
    - libgtkspell-dev (GtkSpell has yet to be ported to GTK+ 3)
    - libpanelappletmm-2.6-dev (Closes: #638108)
      - This removes support for the gnome-panel applet. (Closes: #566670)
      - Support for gnome-panel will be re-enabled once
        libpanel-applet-4-dev migrates from experimental to unstable.
* Re-format debian/copyright to fix lintian warnings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
122
122
  //
123
123
  // Clear out the old list
124
124
  //
125
 
  Gtk::MenuShell::MenuList menu_items = m_menu->items();
126
 
  for(Gtk::MenuShell::MenuList::reverse_iterator iter = menu_items.rbegin();
 
125
  std::vector<Gtk::Widget*> menu_items = m_menu->get_children();
 
126
  for(std::vector<Gtk::Widget*>::reverse_iterator iter = menu_items.rbegin();
127
127
      iter != menu_items.rend(); ++iter) {
128
 
    m_menu->remove(*iter);
 
128
    m_menu->remove(**iter);
129
129
  }
130
130
 
131
131
  //
141
141
  }
142
142
 
143
143
  // If nothing was found, add in a "dummy" item
144
 
  if (m_menu->items().size() == 0) {
 
144
  if (m_menu->get_children().size() == 0) {
145
145
    Gtk::MenuItem *blank_item = manage(new Gtk::MenuItem(_("(none)")));
146
146
    blank_item->set_sensitive(false);
147
147
    blank_item->show_all ();