Tooltip enhancement for clipped H/S buttons, on behalf of MaWe; see issue #553
This commit is contained in:
@@ -22,15 +22,21 @@
|
|||||||
|
|
||||||
IndicateClippedPanel::IndicateClippedPanel (ImageArea* ia) : imageArea(ia) {
|
IndicateClippedPanel::IndicateClippedPanel (ImageArea* ia) : imageArea(ia) {
|
||||||
|
|
||||||
|
Glib::ustring tt;
|
||||||
|
|
||||||
indclippedh = Gtk::manage (new Gtk::ToggleButton ());
|
indclippedh = Gtk::manage (new Gtk::ToggleButton ());
|
||||||
indclippedh->set_relief(Gtk::RELIEF_NONE);
|
indclippedh->set_relief(Gtk::RELIEF_NONE);
|
||||||
indclippedh->add (*Gtk::manage (new Gtk::Image (argv0+"/images/warnhl.png")));
|
indclippedh->add (*Gtk::manage (new Gtk::Image (argv0+"/images/warnhl.png")));
|
||||||
indclippedh->set_tooltip_text (M("MAIN_TOOLTIP_INDCLIPPEDH"));
|
tt = M("MAIN_TOOLTIP_INDCLIPPEDH");
|
||||||
|
if (tt.find("<") == Glib::ustring::npos && tt.find(">") == Glib::ustring::npos) indclippedh->set_tooltip_text (tt);
|
||||||
|
else indclippedh->set_tooltip_markup (tt);
|
||||||
|
|
||||||
indclippeds = Gtk::manage (new Gtk::ToggleButton ());
|
indclippeds = Gtk::manage (new Gtk::ToggleButton ());
|
||||||
indclippeds->set_relief(Gtk::RELIEF_NONE);
|
indclippeds->set_relief(Gtk::RELIEF_NONE);
|
||||||
indclippeds->add (*Gtk::manage (new Gtk::Image (argv0+"/images/warnsh.png")));
|
indclippeds->add (*Gtk::manage (new Gtk::Image (argv0+"/images/warnsh.png")));
|
||||||
indclippeds->set_tooltip_text (M("MAIN_TOOLTIP_INDCLIPPEDS"));
|
tt = M("MAIN_TOOLTIP_INDCLIPPEDS");
|
||||||
|
if (tt.find("<") == Glib::ustring::npos && tt.find(">") == Glib::ustring::npos) indclippeds->set_tooltip_text (tt);
|
||||||
|
else indclippeds->set_tooltip_markup (tt);
|
||||||
|
|
||||||
indclippedh->set_active (options.showClippedHighlights);
|
indclippedh->set_active (options.showClippedHighlights);
|
||||||
indclippeds->set_active (options.showClippedShadows);
|
indclippeds->set_active (options.showClippedShadows);
|
||||||
|
Reference in New Issue
Block a user