]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/radiobut.cpp
style creation
[wxWidgets.git] / src / gtk / radiobut.cpp
index d22bf804c2544ad1608416276f55cbfd160c3ae8..3bc0caaa13a4cd38be63e7da53919d28afe1aebb 100644 (file)
@@ -94,7 +94,7 @@ bool wxRadioButton::Create( wxWindow *parent,
     {
         // search backward for last group start
         wxRadioButton *chief = (wxRadioButton*) NULL;
-        wxWindowList::Node *node = parent->GetChildren().GetLast();
+        wxWindowList::compatibility_iterator node = parent->GetChildren().GetLast();
         while (node)
         {
             wxWindow *child = node->GetData();
@@ -239,7 +239,8 @@ void wxRadioButton::OnInternalIdle()
         }
     }
 
-    UpdateWindowUI();
+    if (wxUpdateUIEvent::CanUpdate(this))
+        UpdateWindowUI(wxUPDATE_UI_FROMIDLE);
 }
 
 wxSize wxRadioButton::DoGetBestSize() const