- {
- // set ellipsize mode
- PangoEllipsizeMode ellipsizeMode = PANGO_ELLIPSIZE_NONE;
- if ( style & wxST_ELLIPSIZE_START )
- ellipsizeMode = PANGO_ELLIPSIZE_START;
- else if ( style & wxST_ELLIPSIZE_MIDDLE )
- ellipsizeMode = PANGO_ELLIPSIZE_MIDDLE;
- else if ( style & wxST_ELLIPSIZE_END )
- ellipsizeMode = PANGO_ELLIPSIZE_END;
-
- gtk_label_set_ellipsize( GTK_LABEL(m_widget), ellipsizeMode );
- }
+ // set ellipsize mode
+ PangoEllipsizeMode ellipsizeMode = PANGO_ELLIPSIZE_NONE;
+ if ( style & wxST_ELLIPSIZE_START )
+ ellipsizeMode = PANGO_ELLIPSIZE_START;
+ else if ( style & wxST_ELLIPSIZE_MIDDLE )
+ ellipsizeMode = PANGO_ELLIPSIZE_MIDDLE;
+ else if ( style & wxST_ELLIPSIZE_END )
+ ellipsizeMode = PANGO_ELLIPSIZE_END;
+
+ gtk_label_set_ellipsize( GTK_LABEL(m_widget), ellipsizeMode );
// GTK_JUSTIFY_LEFT is 0, RIGHT 1 and CENTER 2
static const float labelAlignments[] = { 0.0, 1.0, 0.5 };
// GTK_JUSTIFY_LEFT is 0, RIGHT 1 and CENTER 2
static const float labelAlignments[] = { 0.0, 1.0, 0.5 };
-void wxStaticText::DoSetSize(int x, int y,
- int width, int height,
- int sizeFlags )
-{
- wxStaticTextBase::DoSetSize(x, y, width, height, sizeFlags);
-}
-