[gnote] Fix link action not always sensitive
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Fix link action not always sensitive
- Date: Sun, 29 Jun 2014 14:34:11 +0000 (UTC)
commit 03fc7eee1d1fe0d338fecca6cd45fc9e29d569c5
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Jun 29 17:30:37 2014 +0300
Fix link action not always sensitive
src/notewindow.cpp | 1 +
src/notewindow.hpp | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/notewindow.cpp b/src/notewindow.cpp
index 07afe78..d1bd6f7 100644
--- a/src/notewindow.cpp
+++ b/src/notewindow.cpp
@@ -118,6 +118,7 @@ namespace gnote {
// Sensitize the Link toolbar button on text selection
m_mark_set_timeout = new utils::InterruptableTimeout();
+ m_mark_set_timeout->signal_timeout.connect(sigc::mem_fun(*m_text_menu, &NoteTextMenu::refresh_state));
note.get_buffer()->signal_mark_set().connect(
sigc::mem_fun(*this, &NoteWindow::on_selection_mark_set));
diff --git a/src/notewindow.hpp b/src/notewindow.hpp
index 98b43b7..1921322 100644
--- a/src/notewindow.hpp
+++ b/src/notewindow.hpp
@@ -54,6 +54,7 @@ class NoteTextMenu
public:
NoteTextMenu(const Glib::RefPtr<NoteBuffer> & buffer, UndoManager& undo_manager);
void set_accels(utils::GlobalKeybinder & keybinder, const Glib::RefPtr<Gtk::AccelGroup> &);
+ void refresh_state();
static void markup_label (Gtk::MenuItem & item);
protected:
@@ -61,7 +62,6 @@ protected:
private:
void refresh_sizing_state();
- void refresh_state();
void link_clicked();
void font_style_clicked(Gtk::CheckMenuItem * item);
void font_size_activated(Gtk::RadioMenuItem *item);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]