From 44f6de7338518355611068b2f27003ace8a426ec Mon Sep 17 00:00:00 2001 From: Wen-Wei Kao Date: Sun, 22 Jun 2025 19:09:01 +0800 Subject: [PATCH] Add label to open button --- src/ui/widget/preferences-widget.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ui/widget/preferences-widget.cpp b/src/ui/widget/preferences-widget.cpp index f19d9479f3..6290da8c91 100644 --- a/src/ui/widget/preferences-widget.cpp +++ b/src/ui/widget/preferences-widget.cpp @@ -885,8 +885,13 @@ void PrefEditFolder::init(Glib::ustring const &entry_string, Glib::ustring const // open button openButton = Gtk::make_managed(); + Gtk::Box *openBox = Gtk::make_managed(Gtk::Orientation::HORIZONTAL, 2); auto const openim = sp_get_icon_image("document-open", Gtk::IconSize::NORMAL); - openButton->set_child(*openim); + UI::pack_start(*openBox, *openim); + auto const openl = Gtk::make_managed(); + openl->set_markup_with_mnemonic(("Open")); + UI::pack_end(*openBox, *openl, false, false, 0); + openButton->set_child(*openBox); openButton->set_tooltip_text(_("Open directory")); openButton->set_margin_start(4); UI::pack_end(*this, *openButton, false, false, 0); @@ -900,7 +905,7 @@ void PrefEditFolder::init(Glib::ustring const &entry_string, Glib::ustring const // select button selectButton = Gtk::make_managed(); auto const selectl = Gtk::make_managed(); - selectl->set_markup_with_mnemonic(_("...")); + selectl->set_markup_with_mnemonic(("...")); selectButton->set_child(*selectl); selectButton->set_tooltip_text(_("Select a new directory")); UI::pack_end(*relatedPathBox, *selectButton, false, false, 0); -- GitLab