]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/window.cpp
Printing update for Pango (GTK2 and X11-Unicode).
[wxWidgets.git] / src / gtk1 / window.cpp
index feb8f2ffcec4545d817b04c0fdb3465f692560da..7d50b4b936ab4d859b4ed342e973586732e14b34 100644 (file)
@@ -1511,12 +1511,12 @@ wxWindowGTK *FindWindowForMouseEvent(wxWindowGTK *win, wxCoord& x, wxCoord& y)
         yy += pizza->yoffset;
     }
 
-    wxNode *node = win->GetChildren().First();
+    wxWindowList::Node  *node = win->GetChildren().GetFirst();
     while (node)
     {
-        wxWindowGTK *child = (wxWindowGTK*)node->Data();
+        wxWindowGTK *child = node->GetData();
 
-        node = node->Next();
+        node = node->GetNext();
         if (!child->IsShown())
             continue;
 
@@ -4145,10 +4145,12 @@ void wxWindowGTK::SetWidgetStyle()
 
     GtkStyle *style = GetWidgetStyle();
 
+#ifndef __WXGTK20__
     if (m_font != wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT ))
     {
         SET_STYLE_FONT(style, m_font.GetInternalFont( 1.0 ));
     }
+#endif
 
     if (m_foregroundColour.Ok())
     {