]> git.saurik.com Git - wxWidgets.git/commitdiff
#4479: wx.ComboBox needs a SetFont method
authorRobert Roebling <robert@roebling.de>
Thu, 12 Jun 2008 12:16:42 +0000 (12:16 +0000)
committerRobert Roebling <robert@roebling.de>
Thu, 12 Jun 2008 12:16:42 +0000 (12:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54141 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/gtk/choice.h
src/gtk/choice.cpp

index a9d9cc8e957f7e073f275b73b67d31c93b88ed37..00d21b17189fb4a5507d7104d7015f49044c8bb4 100644 (file)
@@ -99,6 +99,7 @@ protected:
     virtual void DoDeleteOneItem(unsigned int n);
 
     virtual GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const;
+    virtual void DoApplyWidgetStyle(GtkRcStyle *style);
 
     // in derived classes, implement this to insert list store entry
     // with all items default except text
index af58e5c2ce8b0a4044751d8ac95b0352822f1533..5028a57cf04a26ac4606f302cd1549ddda7a29db 100644 (file)
@@ -355,6 +355,13 @@ wxSize wxChoice::DoGetBestSize() const
     return ret;
 }
 
+void wxChoice::DoApplyWidgetStyle(GtkRcStyle *style)
+{
+    gtk_widget_modify_style(m_widget, style);
+    gtk_widget_modify_style(GTK_BIN(m_widget)->child, style);
+}
+
+
 // static
 wxVisualAttributes
 wxChoice::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))