mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-02 03:47:42 +01:00
Remove gtk2-ardour eyedropper special case
This commit is contained in:
parent
a7e557ad65
commit
d088e9c17c
1 changed files with 0 additions and 25 deletions
|
|
@ -35,31 +35,6 @@ StripableColorDialog::StripableColorDialog ()
|
|||
{
|
||||
initialize_color_palette ();
|
||||
signal_response().connect (sigc::mem_fun (*this, &StripableColorDialog::finish_color_edit));
|
||||
|
||||
#ifdef __APPLE__
|
||||
/* hide eyedropper button -- which does not work on OSX:
|
||||
* " the problem is worse than just `not getting the color' though.
|
||||
* The action doesn't actually complete, and window focus is in a
|
||||
* `weird state' until you click inside the color-picker dialog twice;
|
||||
* then it all seems back to normal (but no color got picked)"
|
||||
*
|
||||
* the alternative is to patch gtk's source:
|
||||
* gtk/gtkcolorsel.c gtk_color_selection_init() which packs
|
||||
*
|
||||
* top_hbox [ VBOX [ triangle || hbox [ sample-area || picker-button] ] || ... ]
|
||||
*/
|
||||
ColorSelection* cs = get_color_selection(); // IS-A VBOX
|
||||
if (!cs) { return ; }
|
||||
Gtk::HBox* top_hbox = dynamic_cast<Gtk::HBox*> (cs->children()[0].get_widget());
|
||||
if (!top_hbox) { return ; }
|
||||
Gtk::VBox* vbox = dynamic_cast<Gtk::VBox*> (top_hbox->children()[0].get_widget());
|
||||
if (!vbox) { return ; }
|
||||
Gtk::HBox* hbox = dynamic_cast<Gtk::HBox*> (vbox->children()[1].get_widget());
|
||||
if (!hbox) { return ; }
|
||||
Gtk::Button* picker = dynamic_cast<Gtk::Button*> (hbox->children()[1].get_widget());
|
||||
if (!picker) { return ; }
|
||||
picker->hide ();
|
||||
#endif
|
||||
}
|
||||
|
||||
StripableColorDialog::~StripableColorDialog ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue