wxComboBox::~wxComboBox()
{
- wxNode *node = m_clientDataList.First();
+ wxNode *node = m_clientObjectList.First();
while (node)
{
wxClientData *cd = (wxClientData*)node->Data();
if (cd) delete cd;
node = node->Next();
}
+ m_clientObjectList.Clear();
+
m_clientDataList.Clear();
}
bool multi_line = (style & wxTE_MULTILINE) != 0;
if (multi_line)
{
+#if (GTK_MINOR_VERSION > 2)
/* a multi-line edit control: create a vertical scrollbar by default and
horizontal if requested */
bool bHasHScrollbar = (style & wxHSCROLL) != 0;
+#else
+ bool bHasHScrollbar = FALSE;
+#endif
/* create our control ... */
m_text = gtk_text_new( (GtkAdjustment *) NULL, (GtkAdjustment *) NULL );
/* always wrap words */
gtk_text_set_word_wrap( GTK_TEXT(m_text), TRUE );
+#if (GTK_MINOR_VERSION > 2)
/* put the horizontal scrollbar in the lower left hand corner */
if (bHasHScrollbar)
{
0, 0);
gtk_widget_show(hscrollbar);
-#if (GTK_MINOR_VERSION > 0)
/* don't wrap lines, otherwise we wouldn't need the scrollbar */
gtk_text_set_line_wrap( GTK_TEXT(m_text), FALSE );
-#endif
}
+#endif
/* finally, put the vertical scrollbar in the upper right corner */
m_vScrollbar = gtk_vscrollbar_new( GTK_TEXT(m_text)->vadj );
#include "wx/gtk/win_gtk.h"
#include "gtk/gtksignal.h"
#include "gtk/gtknotebook.h"
-#include "gtk/gtktable.h"
#ifdef __cplusplus
extern "C" {
if (GTK_WIDGET_VISIBLE (widget) && GTK_WIDGET_VISIBLE (myfixed))
{
- if ( ((child->width > 1) && (child->height > 1) && (GTK_WIDGET_REALIZED(widget))) ||
- /* I don't know why GtkTable is different */
- GTK_IS_TABLE(widget))
+ if ( (child->width > 1) &&
+ (child->height > 1) &&
+ !(GTK_WIDGET_REALIZED(widget) && GTK_IS_NOTEBOOK(widget)) )
{
child_allocation.x = child->x;
child_allocation.y = child->y;
wxComboBox::~wxComboBox()
{
- wxNode *node = m_clientDataList.First();
+ wxNode *node = m_clientObjectList.First();
while (node)
{
wxClientData *cd = (wxClientData*)node->Data();
if (cd) delete cd;
node = node->Next();
}
+ m_clientObjectList.Clear();
+
m_clientDataList.Clear();
}
bool multi_line = (style & wxTE_MULTILINE) != 0;
if (multi_line)
{
+#if (GTK_MINOR_VERSION > 2)
/* a multi-line edit control: create a vertical scrollbar by default and
horizontal if requested */
bool bHasHScrollbar = (style & wxHSCROLL) != 0;
+#else
+ bool bHasHScrollbar = FALSE;
+#endif
/* create our control ... */
m_text = gtk_text_new( (GtkAdjustment *) NULL, (GtkAdjustment *) NULL );
/* always wrap words */
gtk_text_set_word_wrap( GTK_TEXT(m_text), TRUE );
+#if (GTK_MINOR_VERSION > 2)
/* put the horizontal scrollbar in the lower left hand corner */
if (bHasHScrollbar)
{
0, 0);
gtk_widget_show(hscrollbar);
-#if (GTK_MINOR_VERSION > 0)
/* don't wrap lines, otherwise we wouldn't need the scrollbar */
gtk_text_set_line_wrap( GTK_TEXT(m_text), FALSE );
-#endif
}
+#endif
/* finally, put the vertical scrollbar in the upper right corner */
m_vScrollbar = gtk_vscrollbar_new( GTK_TEXT(m_text)->vadj );
#include "wx/gtk/win_gtk.h"
#include "gtk/gtksignal.h"
#include "gtk/gtknotebook.h"
-#include "gtk/gtktable.h"
#ifdef __cplusplus
extern "C" {
if (GTK_WIDGET_VISIBLE (widget) && GTK_WIDGET_VISIBLE (myfixed))
{
- if ( ((child->width > 1) && (child->height > 1) && (GTK_WIDGET_REALIZED(widget))) ||
- /* I don't know why GtkTable is different */
- GTK_IS_TABLE(widget))
+ if ( (child->width > 1) &&
+ (child->height > 1) &&
+ !(GTK_WIDGET_REALIZED(widget) && GTK_IS_NOTEBOOK(widget)) )
{
child_allocation.x = child->x;
child_allocation.y = child->y;