[Sugar-devel] [PATCH sugar v5 1/3] Properly wrap labels in the Network Control Panel (GTK#318276 workaround)

Simon Schampijer simon at schampijer.de
Mon Aug 13 06:53:16 EDT 2012


On 08/07/2012 03:32 PM, Sascha Silbe wrote:
> When line wrapping is enabled (label.set_line_wrap(True)), GTK restricts
> labels to an arbitrary size, rather than utilising the entire allocated space.
> This has been known upstream since 2005 (GTK#318276 [1]), but remains unfixed
> to date.
>
> Work around this bug by using a size-allocate signal handler that sets the
> requested size of the label to the actual allocation.
>
> [1] https://bugzilla.gnome.org/show_bug.cgi?id=318276

Could it be that the issue is fixed in GTK+ 3 and introspection? I have 
attached two examples.

Regards,
    Simon





-------------- next part --------------
A non-text attachment was scrubbed...
Name: wrapped_label.py
Type: text/x-python
Size: 1493 bytes
Desc: not available
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20120813/5c88dabe/attachment-0002.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wrapped_label_gtk2.py
Type: text/x-python
Size: 1472 bytes
Desc: not available
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20120813/5c88dabe/attachment-0003.py>


More information about the Sugar-devel mailing list