]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/anybutton.cpp
Move code that does not need realized GdkWinow out of realize handler
[wxWidgets.git] / src / gtk / anybutton.cpp
index 9036b2a7ed38857f8ea6ea2f898f59ef4576ec8d..d64948f55e3ad75dfaee7476cc266dbe1167ea46 100644 (file)
@@ -3,7 +3,6 @@
 // Purpose:
 // Author:      Robert Roebling
 // Created:     1998-05-20 (extracted from button.cpp)
-// Id:          $Id$
 // Copyright:   (c) 1998 Robert Roebling
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
@@ -95,7 +94,7 @@ GdkWindow *wxAnyButton::GTKGetWindow(wxArrayGdkWindows& WXUNUSED(windows)) const
 wxVisualAttributes
 wxAnyButton::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))
 {
-    return GetDefaultAttributesFromGTKWidget(gtk_button_new);
+    return GetDefaultAttributesFromGTKWidget(gtk_button_new());
 }
 
 // ----------------------------------------------------------------------------