]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/tglbtn.cpp
use more natively looking HildonNote instead of GtkMessageDialog under Maemo
[wxWidgets.git] / src / gtk / tglbtn.cpp
index 134fa7a9d5c8ef60c80260b1c156b63e671c7af5..734b351d26ba5ea7f32c2548fdf3855ad070aae1 100644 (file)
@@ -28,9 +28,6 @@ extern bool      g_blockEventsOnDrag;
 extern "C" {
 static void gtk_togglebutton_clicked_callback(GtkWidget *WXUNUSED(widget), wxToggleButton *cb)
 {
-    if (g_isIdle)
-        wxapp_install_idle_handler();
-
     if (!cb->m_hasVMT || g_blockEventsOnDrag)
         return;
 
@@ -58,8 +55,6 @@ bool wxToggleBitmapButton::Create(wxWindow *parent, wxWindowID id,
                             const wxValidator& validator,
                             const wxString &name)
 {
-    m_needParent = true;
-
     m_blockEvent = false;
 
     if (!PreCreation(parent, pos, size) ||
@@ -200,8 +195,6 @@ bool wxToggleButton::Create(wxWindow *parent, wxWindowID id,
                             const wxValidator& validator,
                             const wxString &name)
 {
-    m_needParent = true;
-
     m_blockEvent = false;
 
     if (!PreCreation(parent, pos, size) ||