#include "wx/dialog.h"
#include "wx/frame.h"
-#include "gdk/gdk.h"
-#include "gtk/gtk.h"
-#include "gdk/gdkkeysyms.h"
+#include <gdk/gdk.h>
+#include <gtk/gtk.h>
+#include <gdk/gdkkeysyms.h>
+
#include "wx/gtk/win_gtk.h"
//-----------------------------------------------------------------------------
m_x+10, m_y+10+(i*24), 10, 10 );
}
+ m_parent->DoAddChild( this );
+
+ PostCreation();
+
+ ApplyWidgetStyle();
+
+ SetLabel( title );
+
+ SetFont( parent->GetFont() );
+
wxSize ls = LayoutItems();
wxSize newSize = size;
if (newSize.y == -1) newSize.y = ls.y;
SetSize( newSize.x, newSize.y );
- m_parent->DoAddChild( this );
-
- PostCreation();
-
- SetLabel( title );
-
SetBackgroundColour( parent->GetBackgroundColour() );
SetForegroundColour( parent->GetForegroundColour() );
- SetFont( parent->GetFont() );
Show( TRUE );
GtkToggleButton *button = GTK_TOGGLE_BUTTON( node->Data() );
- DisableEvents();
+ GtkDisableEvents();
gtk_toggle_button_set_state( button, 1 );
- EnableEvents();
+ GtkEnableEvents();
}
int wxRadioBox::GetSelection(void) const
wxFAIL_MSG(wxT("wxRadioBox::SetNumberOfRowsOrCols not implemented."));
}
-void wxRadioBox::DisableEvents()
+void wxRadioBox::GtkDisableEvents()
{
wxNode *node = m_boxes.First();
while (node)
}
}
-void wxRadioBox::EnableEvents()
+void wxRadioBox::GtkEnableEvents()
{
wxNode *node = m_boxes.First();
while (node)
}
}
+#if wxUSE_TOOLTIPS
+void wxRadioBox::ApplyToolTip( GtkTooltips *tips, const wxChar *tip )
+{
+ wxNode *node = m_boxes.First();
+ while (node)
+ {
+ GtkWidget *widget = GTK_WIDGET( node->Data() );
+ gtk_tooltips_set_tip( tips, widget, wxConvCurrent->cWX2MB(tip), (gchar*) NULL );
+ node = node->Next();
+ }
+}
+#endif // wxUSE_TOOLTIPS
+
bool wxRadioBox::IsOwnGtkWindow( GdkWindow *window )
{
if (window == m_widget->window) return TRUE;