After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 469593 - Clearlooks randomly overwrites PangoLayout size attribute
Clearlooks randomly overwrites PangoLayout size attribute
Status: RESOLVED NOTGNOME
Product: gtk-engines
Classification: Deprecated
Component: clearlooks
2.10.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-engines maintainers
gtk-engines maintainers
Depends on:
Blocks:
 
 
Reported: 2007-08-23 13:59 UTC by Chris Lord
Modified: 2007-08-23 16:23 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18



Description Chris Lord 2007-08-23 13:59:39 UTC
If I create a PangoLayout using gtk_widget_create_pango_layout and set its size by doing something like:

attrs = pango_attr_list_new ();
pango_attr_list_change (attrs, pango_attr_size_new (NUMBER));
pango_layout_set_attributes (layout, attrs);

Then draw the layout using gtk_paint_layout, the layout will randomly be drawn with the default size instead of the specified size. I really have no idea what condition causes this I'm afraid, but it happens with the 'Clearlooks' theme and not with the 'Mist' theme.
Comment 1 Benjamin Berg 2007-08-23 15:07:32 UTC
Hm, I don't see how this can be happening. Clearlooks only calls gdk_draw_layout and gdk_draw_layout_with_colors (when the text is insensitive).

No layout changes should happen there.
Comment 2 Benjamin Berg 2007-08-23 16:07:00 UTC
I have just asked in #gtk+ and it seems like your code snippet is wrong. You need to set the start and end position of the attribute, or else you will get random results.

Closing, feel free to reopen should this not be the cause of the problem.
Comment 3 Behdad Esfahbod 2007-08-23 16:23:42 UTC
Lets initialize all attrs to start/end=0/MAXUINT then:

Bug 469641 – Initialize attribute start/end to [0..MAXUINT]