]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/fontpicker.cpp
Slightly better wxStockCursor usage
[wxWidgets.git] / src / gtk / fontpicker.cpp
index a0e12a4978fbe14951268a5ff546d6764f4fdfc9..b2cdb532e3bc8d11e4a69b46815c4b027f1f43d8 100644 (file)
@@ -42,7 +42,7 @@ static void gtk_fontbutton_setfont_callback(GtkFontButton *widget,
 
     // fire the colour-changed event
     wxFontPickerEvent event(p, p->GetId(), p->GetSelectedFont());
-    p->GetEventHandler()->ProcessEvent(event);
+    p->HandleWindowEvent(event);
 }
 }
 
@@ -66,6 +66,7 @@ bool wxFontButton::Create( wxWindow *parent, wxWindowID id,
     }
 
     m_widget = gtk_font_button_new();
+    g_object_ref(m_widget);
 
     // set initial font
     m_selectedFont = initial.IsOk() ? initial : *wxNORMAL_FONT;