projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Declarations missing from VC++ 5
[wxWidgets.git]
/
src
/
gtk1
/
notebook.cpp
diff --git
a/src/gtk1/notebook.cpp
b/src/gtk1/notebook.cpp
index 2d8998bbe16112f365242b0413b603ded5e860d0..ffa2e2a428bf8a16929db78aed1438a7af6ab6d4 100644
(file)
--- a/
src/gtk1/notebook.cpp
+++ b/
src/gtk1/notebook.cpp
@@
-18,11
+18,12
@@
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/utils.h"
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/utils.h"
+ #include "wx/panel.h"
+ #include "wx/msgdlg.h"
+ #include "wx/bitmap.h"
#endif
#endif
-#include "wx/panel.h"
#include "wx/imaglist.h"
#include "wx/imaglist.h"
-#include "wx/bitmap.h"
#include "wx/fontutil.h"
#include "wx/gtk1/private.h"
#include "wx/fontutil.h"
#include "wx/gtk1/private.h"
@@
-30,8
+31,6
@@
#include <gdk/gdkkeysyms.h>
#include <gdk/gdkkeysyms.h>
-#include "wx/msgdlg.h"
-
// ----------------------------------------------------------------------------
// events
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// events
// ----------------------------------------------------------------------------
@@
-325,6
+324,9
@@
bool wxNotebook::Create(wxWindow *parent, wxWindowID id,
m_acceptsFocus = true;
m_insertCallback = (wxInsertChildFunction)wxInsertChildInNotebook;
m_acceptsFocus = true;
m_insertCallback = (wxInsertChildFunction)wxInsertChildInNotebook;
+ if ( (style & wxBK_ALIGN_MASK) == wxBK_DEFAULT )
+ style |= wxBK_TOP;
+
if (!PreCreation( parent, pos, size ) ||
!CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ))
{
if (!PreCreation( parent, pos, size ) ||
!CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ))
{
@@
-692,7
+694,7
@@
bool wxNotebook::InsertPage( size_t position,
/* set the label text */
nb_page->m_text = text;
/* set the label text */
nb_page->m_text = text;
- if (nb_page->m_text.empty()) nb_page->m_text = wx
T("")
;
+ if (nb_page->m_text.empty()) nb_page->m_text = wx
EmptyString
;
nb_page->m_label = GTK_LABEL( gtk_label_new(wxGTK_CONV(nb_page->m_text)) );
gtk_box_pack_end( GTK_BOX(nb_page->m_box), GTK_WIDGET(nb_page->m_label), FALSE, FALSE, m_padding );
nb_page->m_label = GTK_LABEL( gtk_label_new(wxGTK_CONV(nb_page->m_text)) );
gtk_box_pack_end( GTK_BOX(nb_page->m_box), GTK_WIDGET(nb_page->m_label), FALSE, FALSE, m_padding );
@@
-778,15
+780,15
@@
int wxNotebook::HitTest(const wxPoint& pt, long *flags) const
if ( pixmap && IsPointInsideWidget(pt, pixmap, x, y) )
{
if ( pixmap && IsPointInsideWidget(pt, pixmap, x, y) )
{
- *flags = wx
NB
_HITTEST_ONICON;
+ *flags = wx
BK
_HITTEST_ONICON;
}
else if ( IsPointInsideWidget(pt, GTK_WIDGET(nb_page->m_label), x, y) )
{
}
else if ( IsPointInsideWidget(pt, GTK_WIDGET(nb_page->m_label), x, y) )
{
- *flags = wx
NB
_HITTEST_ONLABEL;
+ *flags = wx
BK
_HITTEST_ONLABEL;
}
else
{
}
else
{
- *flags = wx
NB
_HITTEST_ONITEM;
+ *flags = wx
BK
_HITTEST_ONITEM;
}
}
}
}
@@
-795,7
+797,7
@@
int wxNotebook::HitTest(const wxPoint& pt, long *flags) const
}
if ( flags )
}
if ( flags )
- *flags = wx
NB
_HITTEST_NOWHERE;
+ *flags = wx
BK
_HITTEST_NOWHERE;
return wxNOT_FOUND;
}
return wxNOT_FOUND;
}