// GetBestSize is called.
gtk_widget_ensure_style(m_widget);
- ApplyWidgetStyle();
+ GTKApplyWidgetStyle();
SetInitialSize(size);
}
void wxControl::GTKSetLabelForLabel(GtkLabel *w, const wxString& label)
{
- // save the original label
- wxControlBase::SetLabel(label);
-
const wxString labelGTK = GTKConvertMnemonics(label);
gtk_label_set_text_with_mnemonic(w, wxGTK_CONV(labelGTK));
}
+#if wxUSE_MARKUP
+
void wxControl::GTKSetLabelWithMarkupForLabel(GtkLabel *w, const wxString& label)
{
const wxString labelGTK = GTKConvertMnemonicsWithMarkup(label);
gtk_label_set_markup_with_mnemonic(w, wxGTK_CONV(labelGTK));
}
+#endif // wxUSE_MARKUP
// ----------------------------------------------------------------------------
// GtkFrame helpers
void wxControl::GTKSetLabelForFrame(GtkFrame *w, const wxString& label)
{
+ wxControlBase::SetLabel(label);
+
GtkLabel* labelwidget = GTK_LABEL(gtk_frame_get_label_widget(w));
GTKSetLabelForLabel(labelwidget, label);
}
return attr;
}
-// ----------------------------------------------------------------------------
-// idle handling
-// ----------------------------------------------------------------------------
-
-void wxControl::OnInternalIdle()
-{
- if ( GtkShowFromOnIdle() )
- return;
-
- if ( GTK_WIDGET_REALIZED(m_widget) )
- {
- GTKUpdateCursor();
- }
-
- if ( wxUpdateUIEvent::CanUpdate(this) && IsShownOnScreen() )
- UpdateWindowUI(wxUPDATE_UI_FROMIDLE);
-}
-
#endif // wxUSE_CONTROLS