GNOME Bugzilla – Bug 624443
GtkScale marks created with GtkBuilder allocate space for the markup even if it is null
Last modified: 2010-08-05 01:50:08 UTC
Created attachment 165948 [details] valac --pkg gtk+-2.0 scale-mark-test.vala Subject says it all, attaching a simple test case to show it.
Created attachment 165968 [details] screenshot from the test case
Created attachment 166384 [details] [review] Do not create an empty layout for GtkScale marks When adding marks from buildable parser the markup property is stored into a gstring. Then the pango layout is created if markup is not NULL but strings coming from the parser are always not null even when empty. Force the markup property to be NULL if the gstring length is zero.
An alternative way of fixing this would be to check for the markup string to actually be not empty (str != NULL || *str != '\0') when creating the pango layout.