From a8ac548ed05a3a128fa69476cc51acc0504880a2 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 20 Feb 2005 01:33:03 +0000 Subject: [PATCH] trying to draw transparent arrow instead of opaque one but it doesn't seem to change anything git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/renderer.cpp | 6 ++---- src/gtk1/renderer.cpp | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/gtk/renderer.cpp b/src/gtk/renderer.cpp index 143c284dc0..f7240049b7 100644 --- a/src/gtk/renderer.cpp +++ b/src/gtk/renderer.cpp @@ -391,10 +391,10 @@ void wxRendererGTK::DrawComboBoxDropButton(wxWindow *win, else state = GTK_STATE_NORMAL; + // erase background first gtk_paint_box ( gs_button->style, - //GTK_PIZZA(wdc->m_window)->bin_window, wdc.m_window, state, GTK_SHADOW_NONE, @@ -408,7 +408,6 @@ void wxRendererGTK::DrawComboBoxDropButton(wxWindow *win, gtk_paint_arrow ( gs_button->style, - //GTK_PIZZA(wdc->m_window)->bin_window, wdc.m_window, state, flags & wxCONTROL_PRESSED ? GTK_SHADOW_IN : GTK_SHADOW_OUT, @@ -416,9 +415,8 @@ void wxRendererGTK::DrawComboBoxDropButton(wxWindow *win, gs_button, "arrow", GTK_ARROW_DOWN, - TRUE, + FALSE, rect.x + 1, rect.y + 1, rect.width - 2, rect.height - 2 ); - } diff --git a/src/gtk1/renderer.cpp b/src/gtk1/renderer.cpp index 143c284dc0..f7240049b7 100644 --- a/src/gtk1/renderer.cpp +++ b/src/gtk1/renderer.cpp @@ -391,10 +391,10 @@ void wxRendererGTK::DrawComboBoxDropButton(wxWindow *win, else state = GTK_STATE_NORMAL; + // erase background first gtk_paint_box ( gs_button->style, - //GTK_PIZZA(wdc->m_window)->bin_window, wdc.m_window, state, GTK_SHADOW_NONE, @@ -408,7 +408,6 @@ void wxRendererGTK::DrawComboBoxDropButton(wxWindow *win, gtk_paint_arrow ( gs_button->style, - //GTK_PIZZA(wdc->m_window)->bin_window, wdc.m_window, state, flags & wxCONTROL_PRESSED ? GTK_SHADOW_IN : GTK_SHADOW_OUT, @@ -416,9 +415,8 @@ void wxRendererGTK::DrawComboBoxDropButton(wxWindow *win, gs_button, "arrow", GTK_ARROW_DOWN, - TRUE, + FALSE, rect.x + 1, rect.y + 1, rect.width - 2, rect.height - 2 ); - } -- 2.45.2