projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed: clicking on links in the help view did nothing
[wxWidgets.git]
/
src
/
gtk1
/
listbox.cpp
diff --git
a/src/gtk1/listbox.cpp
b/src/gtk1/listbox.cpp
index 4648ad6b988858dc34fc98c6139fc2c48dea152d..2cf833d0ace0b336c3001c94177d5478a0e61ecf 100644
(file)
--- a/
src/gtk1/listbox.cpp
+++ b/
src/gtk1/listbox.cpp
@@
-12,20
+12,21
@@
#if wxUSE_LISTBOX
#if wxUSE_LISTBOX
+#include "wx/listbox.h"
+
#ifndef WX_PRECOMP
#include "wx/dynarray.h"
#ifndef WX_PRECOMP
#include "wx/dynarray.h"
+ #include "wx/intl.h"
+ #include "wx/utils.h"
+ #include "wx/settings.h"
+ #include "wx/checklst.h"
+ #include "wx/arrstr.h"
#endif
#endif
-#include "wx/listbox.h"
-#include "wx/arrstr.h"
-#include "wx/utils.h"
-#include "wx/intl.h"
-#include "wx/checklst.h"
-#include "wx/settings.h"
#include "wx/gtk1/private.h"
#if wxUSE_TOOLTIPS
#include "wx/gtk1/private.h"
#if wxUSE_TOOLTIPS
-#include "wx/tooltip.h"
+
#include "wx/tooltip.h"
#endif
#include <gdk/gdk.h>
#endif
#include <gdk/gdk.h>
@@
-557,7
+558,7
@@
bool wxListBox::Create( wxWindow *parent, wxWindowID id,
m_parent->DoAddChild( this );
PostCreation(size);
m_parent->DoAddChild( this );
PostCreation(size);
- Set
Best
Size(size); // need this too because this is a wxControlWithItems
+ Set
Initial
Size(size); // need this too because this is a wxControlWithItems
return true;
}
return true;
}
@@
-975,7
+976,7
@@
int wxListBox::FindString( const wxString &item, bool bCase ) const
int wxListBox::GetSelection() const
{
int wxListBox::GetSelection() const
{
- wxCHECK_MSG( m_list != NULL,
-1
, wxT("invalid listbox") );
+ wxCHECK_MSG( m_list != NULL,
wxNOT_FOUND
, wxT("invalid listbox") );
GList *child = m_list->children;
int count = 0;
GList *child = m_list->children;
int count = 0;
@@
-985,12
+986,12
@@
int wxListBox::GetSelection() const
count++;
child = child->next;
}
count++;
child = child->next;
}
- return
-1
;
+ return
wxNOT_FOUND
;
}
int wxListBox::GetSelections( wxArrayInt& aSelections ) const
{
}
int wxListBox::GetSelections( wxArrayInt& aSelections ) const
{
- wxCHECK_MSG( m_list != NULL,
-1
, wxT("invalid listbox") );
+ wxCHECK_MSG( m_list != NULL,
wxNOT_FOUND
, wxT("invalid listbox") );
// get the number of selected items first
GList *child = m_list->children;
// get the number of selected items first
GList *child = m_list->children;