GTK+ selects the first item initially
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -110,8 +110,8 @@ bool wxChoice::Create( wxWindow *parent, wxWindowID id,
|
|||||||
m_strings = new wxSortedArrayString;
|
m_strings = new wxSortedArrayString;
|
||||||
}
|
}
|
||||||
|
|
||||||
// begin with no selection
|
// If we have items, GTK will choose the first item by default
|
||||||
m_selection_hack = wxNOT_FOUND;
|
m_selection_hack = n > 0 ? 0 : wxNOT_FOUND;
|
||||||
|
|
||||||
GtkWidget *menu = gtk_menu_new();
|
GtkWidget *menu = gtk_menu_new();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user