[gnote] Remove commented out action code
- From: Aurimas Äernius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Remove commented out action code
- Date: Fri, 19 Oct 2012 21:12:11 +0000 (UTC)
commit d6fb14eaba4e3c1be26a3ffb3e0ba2c4b6664977
Author: Aurimas Äernius <aurisc4 gmail com>
Date: Sat Oct 20 00:04:09 2012 +0300
Remove commented out action code
src/actionmanager.cpp | 19 -------------------
src/gnote.cpp | 4 ----
2 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/src/actionmanager.cpp b/src/actionmanager.cpp
index f994e52..f3f20a5 100644
--- a/src/actionmanager.cpp
+++ b/src/actionmanager.cpp
@@ -182,25 +182,6 @@ namespace gnote {
{
Glib::RefPtr<Gtk::Action> action;
-#if 0
- action = Gtk::Action::create("NewNoteAction",
- Gtk::Stock::NEW, _("_New"),
- _("Create a new note"));
- m_main_window_actions->add(action, Gtk::AccelKey("<Control>N"));
-
- action = Gtk::Action::create(
- "OpenNoteAction", Gtk::Stock::OPEN,
- _("_Open..."),_("Open the selected note"));
- action->set_sensitive(false);
- m_main_window_actions->add(action, Gtk::AccelKey( "<Control>O"));
-
- action = Gtk::Action::create(
- "DeleteNoteAction", Gtk::Stock::DELETE,
- _("_Delete"), _("Delete the selected note"));
- action->set_sensitive(false);
- m_main_window_actions->add(action, Gtk::AccelKey("Delete"));
-#endif
-
action = Gtk::Action::create(
"QuitGNoteAction", Gtk::Stock::QUIT,
_("_Quit"), _("Quit Gnote"));
diff --git a/src/gnote.cpp b/src/gnote.cpp
index d2907a7..d156e98 100644
--- a/src/gnote.cpp
+++ b/src/gnote.cpp
@@ -278,10 +278,6 @@ namespace gnote {
void Gnote::setup_global_actions()
{
ActionManager & am(ActionManager::obj());
-#if 0
- am["NewNoteAction"]->signal_activate()
- .connect(sigc::mem_fun(*this, &Gnote::on_new_note_action));
-#endif
am["QuitGNoteAction"]->signal_activate()
.connect(sigc::mem_fun(*this, &Gnote::quit));
am["ShowPreferencesAction"]->signal_activate().connect(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]