[gnote] Use icon for Create Note button
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Use icon for Create Note button
- Date: Sun, 12 Mar 2017 18:49:34 +0000 (UTC)
commit c7856735d20b9c03877b26ecee2124a294873b4d
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Mar 12 20:48:54 2017 +0200
Use icon for Create Note button
Fixes Bug 704116
src/recentchanges.cpp | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/recentchanges.cpp b/src/recentchanges.cpp
index 0481f99..e0e69b2 100644
--- a/src/recentchanges.cpp
+++ b/src/recentchanges.cpp
@@ -157,7 +157,11 @@ namespace gnote {
left_box->attach(*m_all_notes_button, 0, 0, 1, 1);
m_new_note_button = manage(new Gtk::Button);
- m_new_note_button->set_label(_("New"));
+ image = manage(new Gtk::Image);
+ image->property_icon_name() = "list-add-symbolic";
+ image->property_icon_size() = GTK_ICON_SIZE_MENU;
+ m_new_note_button->set_image(*image);
+ m_new_note_button->set_tooltip_text(_("Create New Note"));
m_new_note_button->add_accelerator("activate", get_accel_group(), GDK_KEY_N, Gdk::CONTROL_MASK,
(Gtk::AccelFlags) 0);
m_new_note_button->signal_clicked().connect(sigc::mem_fun(m_search_notes_widget,
&SearchNotesWidget::new_note));
m_new_note_button->show_all();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]