diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-07-24 22:04:44 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-07-24 22:04:44 +0000 |
| commit | a83cce26cd86e87131321ba19a7ba32a9763fb28 (patch) | |
| tree | c315254d96d43b007ff6c081e5e968b41b30cf0b /src/ui/widget/preferences-widget.cpp | |
| parent | Fix buttons strings (diff) | |
| download | inkscape-a83cce26cd86e87131321ba19a7ba32a9763fb28.tar.gz inkscape-a83cce26cd86e87131321ba19a7ba32a9763fb28.zip | |
Improve the look of prefs buttons
Diffstat (limited to 'src/ui/widget/preferences-widget.cpp')
| -rw-r--r-- | src/ui/widget/preferences-widget.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/ui/widget/preferences-widget.cpp b/src/ui/widget/preferences-widget.cpp index 2b5378416..171a20418 100644 --- a/src/ui/widget/preferences-widget.cpp +++ b/src/ui/widget/preferences-widget.cpp @@ -880,14 +880,22 @@ bool PrefEntryFileButtonHBox::on_mnemonic_activate ( bool group_cycling ) return relatedEntry->mnemonic_activate ( group_cycling ); } -void PrefOpenFolder::init(Glib::ustring const &entry_string, Glib::ustring const &button_text) +void PrefOpenFolder::init(Glib::ustring const &entry_string, Glib::ustring const &tooltip) { relatedEntry = new Gtk::Entry(); - relatedButton = new Gtk::Button(button_text); + relatedButton = new Gtk::Button(); + Gtk::HBox* pixlabel = new Gtk::HBox(false, 3); + Gtk::Image *im = sp_get_icon_image("document-open", Gtk::ICON_SIZE_BUTTON); + pixlabel->pack_start(*im); + Gtk::Label *l = new Gtk::Label(); + l->set_markup_with_mnemonic(_("_Browse...")); + pixlabel->pack_start(*l); + relatedButton->add(*pixlabel); + relatedButton->set_tooltip_text(tooltip); relatedEntry->set_text(entry_string); relatedEntry->set_sensitive(false); - this->pack_start(*relatedEntry); - this->pack_start(*relatedButton); + this->pack_end(*relatedButton, false, false, 4); + this->pack_start(*relatedEntry, true, true, 0); relatedButton->signal_clicked().connect( sigc::mem_fun(*this, &PrefOpenFolder::onRelatedButtonClickedCallback)); |
