]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/combobox.cpp
the same event handler class, not object, can be used with multiple windows (patch...
[wxWidgets.git] / src / gtk / combobox.cpp
index 807fdf895be61f671d357d828a911e5317482486..00792deb148bf25ceeae1858051050ef937fcaea 100644 (file)
@@ -242,7 +242,6 @@ bool wxComboBox::Create( wxWindow *parent, wxWindowID id, const wxString& value,
                          const wxString& name )
 {
     m_ignoreNextUpdate = false;
-    m_needParent = true;
     m_prevSelection = 0;
 
     if (!PreCreation( parent, pos, size ) ||
@@ -947,7 +946,10 @@ void wxComboBox::SetValue( const wxString& value )
 
     wxString tmp;
     if (!value.IsNull()) tmp = value;
+    
+    DisableEvents();
     gtk_entry_set_text( entry, wxGTK_CONV( tmp ) );
+    EnableEvents();
 
     InvalidateBestSize();
 }