GNOME Bugzilla – Bug 118045
label does not get size-allocated right on construction
Last modified: 2004-12-22 21:47:04 UTC
context: ======== I'm the drakxtools and the mandrake control center maintainer. these tools are written in perl and use the gtk2-perl-xs binding. description: ============ if i fill a label with a few paragraphs made up of long lines, labels does not wrap correctly its paragraphs: it wastes a lot of space on its left and its rights, despite having enough space to wrap more appriately. this results in both wasted spaces on label margins and partly invisible text (hance the need for a scrolled window). i know that a GtkLabel isn't supposed to be as feature-rich than a GtkTextView, but using a GtkTextView for such purpose is over featured and has also drabacks (such as the meaningless input method contextual menu, which is useless for non editable textviews) as to prove this is not a bug of mine or of the perl/gtk+-2 binding, a small c testcase is attached. gcc $(pkg-config gtk+-2.0 --cflags --libs) -Wl,--export-dynamic -Os -s -Wall -W test.c software version: ================= os: Mandrake Linux cooker platform: ia32 tv@du test-label/ $ rpm -qa gcc pkgconfig lib{gtk+2,pango1,glib2}\*|sort gcc-3.3.1-0.5mdk libglib2.0_0-2.2.2-3mdk libglib2.0_0-devel-2.2.2-3mdk libpango1.0_0-1.2.3-2mdk libpango1.0_0-devel-1.2.3-2mdk pkgconfig-0.15.0-1mdk
Created attachment 18510 [details] example: ======== example: draksec snaphot:
Created attachment 18511 [details] test case (gcc $(pkg-config gtk+-2.0 --cflags --libs) -Wl,--export-dynamic -Os -s -Wall -W test.c)
*** This bug has been marked as a duplicate of 101968 ***
*** Bug 118046 has been marked as a duplicate of this bug. ***