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 118045 - label does not get size-allocated right on construction
label does not get size-allocated right on construction
Status: RESOLVED DUPLICATE of bug 101968
Product: gtk+
Classification: Platform
Component: Widget: Other
2.2.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
: 118046 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-07-22 09:34 UTC by tvignaud
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
example: ======== example: draksec snaphot: (37.00 KB, image/png)
2003-07-22 09:35 UTC, tvignaud
Details
test case (gcc $(pkg-config gtk+-2.0 --cflags --libs) -Wl,--export-dynamic -Os -s -Wall -W test.c) (965 bytes, text/plain)
2003-07-22 09:36 UTC, tvignaud
Details

Description tvignaud 2003-07-22 09:34:23 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
Comment 1 tvignaud 2003-07-22 09:35:44 UTC
Created attachment 18510 [details]
example:
========
example: draksec snaphot:
Comment 2 tvignaud 2003-07-22 09:36:33 UTC
Created attachment 18511 [details]
test case (gcc $(pkg-config gtk+-2.0 --cflags --libs) -Wl,--export-dynamic -Os -s -Wall -W test.c)
Comment 3 Owen Taylor 2003-07-22 10:40:01 UTC

*** This bug has been marked as a duplicate of 101968 ***
Comment 4 Owen Taylor 2003-07-22 10:40:24 UTC
*** Bug 118046 has been marked as a duplicate of this bug. ***