if (!rb->m_hasVMT) return FALSE;
if (g_blockEventsOnDrag) return FALSE;
- if ( ((gdk_event->keyval == GDK_Tab) ||
+ if ( ((gdk_event->keyval == GDK_Tab) ||
(gdk_event->keyval == GDK_ISO_Left_Tab)) &&
rb->GetParent() && (rb->GetParent()->HasFlag( wxTAB_TRAVERSAL)) )
{
return false;
}
- m_widget = gtk_frame_new(NULL);
- SetLabel(title);
+ m_widget = GTKCreateFrame(title);
+ wxControl::SetLabel(title);
// majorDim may be 0 if all trailing parameters were omitted, so don't
// assert here but just use the correct value for it
return GTK_WIDGET_VISIBLE(GTK_WIDGET(button));
}
-int wxRadioBox::GetCount() const
+size_t wxRadioBox::GetCount() const
{
return m_boxes.GetCount();
}
void wxRadioBox::DoApplyWidgetStyle(GtkRcStyle *style)
{
- gtk_widget_modify_style( m_widget, style );
- gtk_widget_modify_style(GTK_FRAME(m_widget)->label_widget, style);
+ GTKFrameApplyWidgetStyle(GTK_FRAME(m_widget), style);
wxList::compatibility_iterator node = m_boxes.GetFirst();
while (node)
}
}
+bool wxRadioBox::GTKWidgetNeedsMnemonic() const
+{
+ return true;
+}
+
+void wxRadioBox::GTKWidgetDoSetMnemonic(GtkWidget* w)
+{
+ GTKFrameSetMnemonicWidget(GTK_FRAME(m_widget), w);
+}
+
#if wxUSE_TOOLTIPS
void wxRadioBox::ApplyToolTip( GtkTooltips *tips, const wxChar *tip )
{