]> git.saurik.com Git - wxWidgets.git/commitdiff
trying to draw transparent arrow instead of opaque one but it doesn't seem to change...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 20 Feb 2005 01:33:03 +0000 (01:33 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 20 Feb 2005 01:33:03 +0000 (01:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/renderer.cpp
src/gtk1/renderer.cpp

index 143c284dc0a14cd70db8f9e2634d6300691389f2..f7240049b7e2181dea37c93b2f2235a89e8f1c5f 100644 (file)
@@ -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
     );
-
 }
 
index 143c284dc0a14cd70db8f9e2634d6300691389f2..f7240049b7e2181dea37c93b2f2235a89e8f1c5f 100644 (file)
@@ -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
     );
-
 }