how to force auto_dir off in pango_layout used by widgets
Submitted by Felipe Heidrich
Here is my problem: In a LTR widget (label) I have the text: "felipe." When I change the direction of this widget to RTL I would like to have ".felipe"
If I'm drawning the widget myself I just need to create the widget and call: gtk_widget_set_direction (drawingArea, GTK_TEXT_DIR_RTL); Then during the expose event I use: PangoLayout* layout = gtk_widget_create_pango_layout (drawingArea, text); pango_layout_set_auto_dir (layout, 0);
The code above will draw ".felipe" for me.
How can I do the same using a GtkLabel (instead of a custom widget?) ? I suppose I could add RLM in the beginning of the string but I think it would be pretty hacky.