X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ac6e0eb1547cfc47ca72e6a293e28ca0f93f2981..98c4eb39105531b0316a9d8dbf87d7939e4c4270:/src/gtk/stattext.cpp diff --git a/src/gtk/stattext.cpp b/src/gtk/stattext.cpp index 4f90978241..6fe31c64c6 100644 --- a/src/gtk/stattext.cpp +++ b/src/gtk/stattext.cpp @@ -72,15 +72,15 @@ bool wxStaticText::Create(wxWindow *parent, justify = GTK_JUSTIFY_RIGHT; else // wxALIGN_LEFT is 0 justify = GTK_JUSTIFY_LEFT; - + if (GetLayoutDirection() == wxLayout_RightToLeft) - { + { if (justify == GTK_JUSTIFY_RIGHT) justify = GTK_JUSTIFY_LEFT; if (justify == GTK_JUSTIFY_LEFT) justify = GTK_JUSTIFY_RIGHT; } - + gtk_label_set_justify(GTK_LABEL(m_widget), justify); // GTK_JUSTIFY_LEFT is 0, RIGHT 1 and CENTER 2 @@ -150,7 +150,7 @@ bool wxStaticText::SetFont( const wxFont &font ) PangoAttrList *attrs = pango_attr_list_new(); PangoAttribute *a = pango_attr_underline_new(PANGO_UNDERLINE_SINGLE); a->start_index = 0; - a->end_index = -1; + a->end_index = (guint)-1; pango_attr_list_insert(attrs, a); gtk_label_set_attributes(GTK_LABEL(m_widget), attrs); pango_attr_list_unref(attrs);