From 51c51d8d154d98bc333000e99a6053104b2fcb80 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Wed, 11 Nov 2015 17:27:06 +0100 Subject: [PATCH] Add support for alpha channel in wxColourDialog (wxGTK). Showing opacity slider is controlled by wxColourData::GetChooseAlpha(). --- src/gtk/colordlg.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gtk/colordlg.cpp b/src/gtk/colordlg.cpp index 9a1603649e..8397fa2c87 100644 --- a/src/gtk/colordlg.cpp +++ b/src/gtk/colordlg.cpp @@ -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; }