// 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 wxWindow::GetClassDefaultAttributes(wxWINDOW_VARIANT_NORMAL);
}
- if (state == -1)
- state = GTK_STATE_NORMAL;
-
// get the style's colours
attr.colFg = wxColour(style->fg[state]);
if (useBase)
if ( style && style->font_desc )
{
wxNativeFontInfo info;
- info.description = pango_font_description_copy(style->font_desc);
+ info.description = style->font_desc;
attr.font = wxFont(info);
+ info.description = NULL;
}
else
{
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