[gnote] Move export to HTML menu item to gears menu
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Move export to HTML menu item to gears menu
- Date: Fri, 31 May 2013 19:54:17 +0000 (UTC)
commit 87b663cb4331c8718ad45351d544ea962f600184
Author: Aurimas Černius <aurisc4 gmail com>
Date: Fri May 31 22:49:02 2013 +0300
Move export to HTML menu item to gears menu
Part of Bug 700655.
src/addins/exporttohtml/exporttohtmlnoteaddin.cpp | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/addins/exporttohtml/exporttohtmlnoteaddin.cpp
b/src/addins/exporttohtml/exporttohtmlnoteaddin.cpp
index 21316d4..4d50579 100644
--- a/src/addins/exporttohtml/exporttohtmlnoteaddin.cpp
+++ b/src/addins/exporttohtml/exporttohtmlnoteaddin.cpp
@@ -26,7 +26,6 @@
#include <libxslt/extensions.h>
#include <glibmm/i18n.h>
-#include <gtkmm/stock.h>
#include "sharp/exception.hpp"
#include "sharp/files.hpp"
@@ -72,12 +71,11 @@ void ExportToHtmlNoteAddin::shutdown()
void ExportToHtmlNoteAddin::on_note_opened()
{
- Gtk::ImageMenuItem *item = manage(new Gtk::ImageMenuItem (_("Export to HTML")));
- item->set_image(*manage(new Gtk::Image (Gtk::Stock::SAVE, Gtk::ICON_SIZE_MENU)));
- item->signal_activate().connect(
+ Glib::RefPtr<Gtk::Action> action = Gtk::Action::create("ExportToHtmlAction", _("Export to HTML"),
+ _("Export note to HTML"));
+ action->signal_activate().connect(
sigc::mem_fun(*this, &ExportToHtmlNoteAddin::export_button_clicked));
- item->show ();
- add_plugin_menu_item (item);
+ add_note_action(action, 200);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]