#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"
//-----------------------------------------------------------------------------
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;