]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/listbox.cpp
Improve behavior of menubar switching when windows are activated.
[wxWidgets.git] / src / gtk1 / listbox.cpp
index d5fcf07764f1b973d85c0fbae9072ea8311b3177..8828edc2a3b8ef07560d5f43afe267b889661140 100644 (file)
@@ -600,7 +600,7 @@ int wxListBox::DoInsertItems(const wxArrayStringsAdapter& items,
         const unsigned idx = m_strings ? m_strings->Add(item)
                                        : pos;
 
-        GtkAddItem(item, idx == GetCount() ? -1 : idx);
+        GtkAddItem(item, idx == GetCount() ? (unsigned) -1 : idx);
 
         m_clientList.Insert(idx, NULL);