]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dirdlg.cpp
don't use built-in support for menu bitmaps if they are too big, they don't come...
[wxWidgets.git] / src / gtk / dirdlg.cpp
index 7874ff5773f8dc06960c9c81d687509d06d24f13..08e4a0af44558238d0f61238993209588ff81103 100644 (file)
@@ -120,6 +120,7 @@ wxDirDialog::wxDirDialog(wxWindow* parent,
                    GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
                    GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
                    NULL);
+    g_object_ref(m_widget);
 
     gtk_dialog_set_default_response(GTK_DIALOG(m_widget), GTK_RESPONSE_ACCEPT);