]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/control.cpp
No real changes, just fix misspellings in comments in wxGTK code.
[wxWidgets.git] / src / gtk / control.cpp
index 5a06a3910f43dfd0af92e470d8ffe58df00eb0ea..24570f6afec6ee0e9580e9901b554c39722d3cbc 100644 (file)
@@ -229,9 +229,6 @@ wxControl::GetDefaultAttributesFromGTKWidget(GtkWidget* widget,
         return wxWindow::GetClassDefaultAttributes(wxWINDOW_VARIANT_NORMAL);
     }
 
-    if (state == -1)
-        state = GTK_STATE_NORMAL;
-
     // get the style's colours
     attr.colFg = wxColour(style->fg[state]);
     if (useBase)
@@ -245,8 +242,9 @@ wxControl::GetDefaultAttributesFromGTKWidget(GtkWidget* widget,
     if ( style && style->font_desc )
     {
         wxNativeFontInfo info;
-        info.description = pango_font_description_copy(style->font_desc);
+        info.description = style->font_desc;
         attr.font = wxFont(info);
+        info.description = NULL;
     }
     else
     {