GNOME Bugzilla – Bug 726925
GtkCellRendererText: xalign and yalign properties aren't read/saved to file
Last modified: 2018-03-26 15:35:18 UTC
In the GtkCellRendererText control, the common properties "xalign" and "yalign" when set *manually* in glade (i.e. not set to read from model) aren't stored in xml file. These properties aren't also read from the xml.
Created attachment 273376 [details] glade file which demonstrates xalign behavior on GtkCellRendererText Sorry, the problem is quite different. Namely, the properties, in fact, ARE saved, except when the xalign/yalign value is 0.5. This is correct provided that the default values of the properties are 0.5. But, in fact, the xalign property default is 0.0, despite the documentation says that it is 0.5! This is the real problem. See the glade file which demonstrates problem. Open it with glade. Currently the xalign property on GtkCellRendererText column is set to 0.49 and when you click "preview snapshot", you may see that the text is centered. Change the horizontal alignment property value to 0.50 and see the preview snapshot again. The text is aligned left! When you change the alignment to 0.51, text is centered again.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glade/issues/151.