Add support for alpha channel in wxColourDialog (wxGTK).

Showing opacity slider is controlled by wxColourData::GetChooseAlpha().
This commit is contained in:
Artur Wieczorek
2015-11-11 17:27:06 +01:00
parent b6e13a52a9
commit 51c51d8d15

View File

@@ -65,6 +65,7 @@ bool wxColourDialog::Create(wxWindow *parent, wxColourData *data)
gtk_color_selection_dialog_get_color_selection(
GTK_COLOR_SELECTION_DIALOG(m_widget)));
gtk_color_selection_set_has_palette(sel, true);
gtk_color_selection_set_has_opacity_control(sel, m_data.GetChooseAlpha());
return true;
}