]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/listbox.cpp
making sure it is only breaking at newlines for measuring
[wxWidgets.git] / src / gtk / listbox.cpp
index 1085290fa26efd2fa42a7dc7732b33c48a6eabb2..6c63afc9a5d62d9c0d9809b76551ccf7eaa4fa16 100644 (file)
@@ -465,7 +465,7 @@ bool wxListBox::Create( wxWindow *parent, wxWindowID id,
     m_parent->DoAddChild( this );
 
     PostCreation(size);
-    SetBestSize(size); // need this too because this is a wxControlWithItems
+    SetInitialSize(size); // need this too because this is a wxControlWithItems
 
     return true;
 }
@@ -516,7 +516,7 @@ void wxListBox::GtkInsertItems(const wxArrayString& items,
         wxString label = items[i];
 
         GtkTreeEntry* entry = gtk_tree_entry_new();
-        gtk_tree_entry_set_label(entry, wxConvUTF8.cWX2MB(label));
+        gtk_tree_entry_set_label(entry, wxGTK_CONV(label));
         gtk_tree_entry_set_destroy_func(entry,
                 (GtkTreeEntryDestroy)gtk_tree_entry_destroy_cb,
                             this);