GNOME Bugzilla – Bug 321373
labels holding long text when wrap mode is enabled doesn't use all the width
Last modified: 2006-05-19 00:58:39 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 () ; } }
Dup of bug 101968, I think.
i do think it's a duplicate of #101968 can someone with enought mojo close this bug as duplicate?
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 ***