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 321373 - labels holding long text when wrap mode is enabled doesn't use all the width
labels holding long text when wrap mode is enabled doesn't use all the width
Status: RESOLVED DUPLICATE of bug 101968
Product: gtk+
Classification: Platform
Component: Widget: Other
2.8.x
Other All
: Normal trivial
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2005-11-13 16:16 UTC by François Battail
Modified: 2006-05-19 00:58 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12



Description François Battail 2005-11-13 16:16:01 UTC
Please describe the problem:
When using a label to hold long text using the wrap mode, the label doesn't use
all the width available. Please note that changing the justify mode doesn't
change anything.

Steps to reproduce:
1. See the test case on field "Is there any other information you wish to add to
your bug report?", or use Glade as explained in the test case
2. Compile this C# program using the Mono 1.1.8 framework: mcs testcase.cs
/out:testcase.exe -pkg:gtk-sharp-2.0
3. Run: mono ./testcase.exe


Actual results:
From my tests Label width seems to be limited to less than 50% of the width
available.

Expected results:
Label should use all the width available.

Does this happen every time?
Yes.

Other information:
// You can use also Glade to see this behaviour:
// Create a window, fix the size
// put a VBox into the window
// add a label put a long text, set Xalign to 0.0
// and set wrap mode to On
using System ;
using Gtk ;

class App
{
  private Window win ;
  private VBox vb ;
  private Label label ;

  static void Main (int argC, string [] argV)
  {
    string longText = "This is a long text which will not expand into "+
                      "the big GTK Window and so showing the behaviour "+
                      "of Label when wrap mode is on" ;
    Application.Init () ;
    win = new Window ("Label test case") ;
    win.SetDefaultSize (800, 300) ;
    vb = new VBox () ;
    win.Add (vb) ;
    label = new Label () ;
    label.Wrap = true ;
    label.Xalign = 0.0f ;
    label.Text = longText ;
    vb.PackStart (label, false, false, 0) ;
    win.ShowAll () ;
    
    Application.Run () ;
  }

}
Comment 1 Christian Persch 2005-12-20 22:28:09 UTC
Dup of bug 101968, I think.
Comment 2 Thierry Vignaud 2006-05-18 21:31:20 UTC
i do think it's a duplicate of #101968
can someone with enought mojo close this bug as duplicate?
Comment 3 Behdad Esfahbod 2006-05-19 00:58:39 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.


*** This bug has been marked as a duplicate of 101968 ***