[gtk+] Fix build breakage and avoid a warning



commit 58ed78cbe046b4ebf3d6594416e8447c639f8d79
Author: Tor Lillqvist <tml iki fi>
Date:   Sat Nov 6 13:13:59 2010 +0200

    Fix build breakage and avoid a warning

 modules/engines/ms-windows/msw_style.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/modules/engines/ms-windows/msw_style.c b/modules/engines/ms-windows/msw_style.c
index 9cc61f6..5df5447 100755
--- a/modules/engines/ms-windows/msw_style.c
+++ b/modules/engines/ms-windows/msw_style.c
@@ -1739,7 +1739,7 @@ draw_box (GtkStyle *style,
       HDC dc;
       int cx;
 
-      border = (GTK_TOGGLE_BUTTON (widget)->active ? DFCS_PUSHED | DFCS_FLAT : 0);
+      border = (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget)) ? DFCS_PUSHED | DFCS_FLAT : 0);
 
       dc = get_window_dc (style, cr, state_type, &dc_info, x, y, width, height, &rect);
       DrawFrameControl (dc, &rect, DFC_SCROLL, DFCS_SCROLLDOWN | border);
@@ -2430,11 +2430,11 @@ draw_themed_tab_button (GtkStyle *style,
     }
   else
     {
+/* FIXME: poop */
+#if 0
       GdkPixbuf *pixbuf;
       GdkPixbuf *rotated;
 
-/* FIXME: poop */
-#if 0
       if (gap_side == GTK_POS_LEFT || gap_side == GTK_POS_RIGHT)
 	{
 	  pixmap = gdk_pixmap_new (cr, draw_rect.height, draw_rect.width, -1);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]