[gnote] Change icons and remove labels from find next/prev



commit 8cc1c89ec5f194c15e412edddc81936820f571c5
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun Nov 29 21:01:43 2020 +0200

    Change icons and remove labels from find next/prev

 src/recentchanges.cpp | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/src/recentchanges.cpp b/src/recentchanges.cpp
index 1125bf54..6668f610 100644
--- a/src/recentchanges.cpp
+++ b/src/recentchanges.cpp
@@ -250,8 +250,11 @@ namespace gnote {
 
     m_find_next_prev_box.set_margin_left(5);
 
-    Gtk::Button *find_next_button = manage(new Gtk::Button(_("Find _Next"), true));
-    find_next_button->set_image(*manage(new Gtk::Image(Gtk::Stock::GO_FORWARD, Gtk::ICON_SIZE_MENU)));
+    Gtk::Button *find_next_button = manage(new Gtk::Button);
+    Gtk::Image *image = manage(new Gtk::Image);
+    image->property_icon_name() = "go-down-symbolic";
+    image->property_icon_size() = GTK_ICON_SIZE_MENU;
+    find_next_button->set_image(*image);
     find_next_button->set_always_show_image(true);
     find_next_button->signal_clicked()
       .connect(sigc::mem_fun(*this, &NoteRecentChanges::on_find_next_button_clicked));
@@ -259,8 +262,11 @@ namespace gnote {
     find_next_button->show();
     m_find_next_prev_box.attach(*find_next_button, 0, 0, 1, 1);
 
-    Gtk::Button *find_prev_button = manage(new Gtk::Button(_("Find _Previous"), true));
-    find_prev_button->set_image(*manage(new Gtk::Image(Gtk::Stock::GO_BACK, Gtk::ICON_SIZE_MENU)));
+    Gtk::Button *find_prev_button = manage(new Gtk::Button);
+    image = manage(new Gtk::Image);
+    image->property_icon_name() = "go-up-symbolic";
+    image->property_icon_size() = GTK_ICON_SIZE_MENU;
+    find_prev_button->set_image(*image);
     find_prev_button->set_always_show_image(true);
     find_prev_button->signal_clicked()
       .connect(sigc::mem_fun(*this, &NoteRecentChanges::on_find_prev_button_clicked));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]