[gnote] Cleanup text button menu attachment
- From: Aurimas ÄŒernius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Cleanup text button menu attachment
- Date: Sun, 29 Jun 2014 14:34:16 +0000 (UTC)
commit 63923705f27b12fe41f3bf3e3860de42a47f1ae0
Author: Aurimas ÄŒernius <aurisc4 gmail com>
Date: Sun Jun 29 17:32:03 2014 +0300
Cleanup text button menu attachment
src/notewindow.cpp | 6 +++---
src/notewindow.hpp | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/notewindow.cpp b/src/notewindow.cpp
index d1bd6f7..7847289 100644
--- a/src/notewindow.cpp
+++ b/src/notewindow.cpp
@@ -410,11 +410,12 @@ namespace gnote {
image->property_icon_size() = GTK_ICON_SIZE_MENU;
text_button->set_image(*image);
text_button->signal_clicked()
- .connect(boost::bind(sigc::mem_fun(*this, &NoteWindow::on_text_button_clicked), text_button));
+ .connect(sigc::mem_fun(*this, &NoteWindow::on_text_button_clicked));
text_button->property_margin_left() = 12;
text_button->show_all();
grid->attach(*text_button, grid_col++, 0, 1, 1);
text_button->set_tooltip_text(_("Set properties of text"));
+ m_text_menu->property_attach_widget() = text_button;
m_important_action = utils::CheckAction::create("mark-important");
m_important_action->set_label(_("Is Important"));
@@ -602,9 +603,8 @@ namespace gnote {
m_note.set_pinned(!m_note.is_pinned());
}
- void NoteWindow::on_text_button_clicked(Gtk::Button *button)
+ void NoteWindow::on_text_button_clicked()
{
- m_text_menu->property_attach_widget() = button;
m_text_menu->show_all();
utils::popup_menu(*m_text_menu, NULL);
}
diff --git a/src/notewindow.hpp b/src/notewindow.hpp
index 1921322..98faaf7 100644
--- a/src/notewindow.hpp
+++ b/src/notewindow.hpp
@@ -251,7 +251,7 @@ private:
void remove_accel_group(Gtk::Window &);
void on_pin_status_changed(const Note &, bool);
void on_pin_button_clicked();
- void on_text_button_clicked(Gtk::Button *button);
+ void on_text_button_clicked();
Note & m_note;
std::string m_name;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]