Re: Label and wrap text (Preben Randhol)

2005-06-19 Thread Preben Randhol
On Sun, Jun 19, 2005 at 01:11:05PM -0400, Irv Mullins wrote: > > You could perhaps substitue a text_view, set non-editable. That > control does adjust the text to fill the space available. > Thanks, but my problem is that : 1. I want to use the Pango markup 2. I want to make a simple poor-man'

Re: Label and wrap text (Preben Randhol)

2005-06-19 Thread Irv Mullins
On Sun, Jun 19, 2005 at 10:37:54AM +0200, David Necas (Yeti) wrote: This doesn't help -- in fact, it doesn't even seem to do what it should do, I get ragged right text like with GTK_JUSTIFY_LEFT (GTK_JUSTIFY_RIGHT works, though). A simple test case is atached to this mail. The question is how

Re: Label and wrap text

2005-06-19 Thread Preben Randhol
On Sun, Jun 19, 2005 at 11:38:28AM +0200, Jean Bréfort wrote: > > => GTK_JUSTFIY_FILL does not work. I filed a bug report just to bring attention to this part of Gtk. Don't know if there will be any improvements of GtkLabel in the future, but it would be nice. Preben

Re: Label and wrap text

2005-06-19 Thread Preben Randhol
On Sun, Jun 19, 2005 at 11:38:28AM +0200, Jean Bréfort wrote: > Looks like there are bugs. Actually it has always been like this since 1.0. However, I hope that it will be fixed in future versions of Gtk. > > => When we wrap the text, the width of the label lines is fixed whatever > the width of

Re: Label and wrap text

2005-06-19 Thread Jean Bréfort
Le dimanche 19 juin 2005 à 11:31 +0200, Preben Randhol a écrit : > On Sun, Jun 19, 2005 at 09:30:46AM +0200, Jean Bréfort wrote: > > > > I did not try it, but a call to gtk_label_set_justify should solve your > > problem: > > gtk_label_set_justify (label, GTK_JUSTIFY_FILL); > > It is set to GTK_J

Re: Label and wrap text

2005-06-19 Thread Preben Randhol
On Sun, Jun 19, 2005 at 10:37:54AM +0200, David Necas (Yeti) wrote: > > This doesn't help -- in fact, it doesn't even seem to do > what it should do, I get ragged right text like with > GTK_JUSTIFY_LEFT (GTK_JUSTIFY_RIGHT works, though). > > A simple test case is atached to this mail. The questi

Re: Label and wrap text

2005-06-19 Thread Preben Randhol
On Sun, Jun 19, 2005 at 09:30:46AM +0200, Jean Bréfort wrote: > > I did not try it, but a call to gtk_label_set_justify should solve your > problem: > gtk_label_set_justify (label, GTK_JUSTIFY_FILL); It is set to GTK_JUSTIFY_FILL already. Preben ___ gt

Re: Label and wrap text

2005-06-19 Thread David Necas (Yeti)
On Sun, Jun 19, 2005 at 09:30:46AM +0200, Jean Bréfort wrote: > > I did not try it, but a call to gtk_label_set_justify should solve your > problem: > gtk_label_set_justify (label, GTK_JUSTIFY_FILL); This doesn't help -- in fact, it doesn't even seem to do what it should do, I get ragged right te

Re: Label and wrap text

2005-06-19 Thread Jean Bréfort
Le dimanche 19 juin 2005 à 02:23 +0200, Preben Randhol a écrit : > Hello > > I was thinking to use a label to present some text for a simple help in > my program. The problem is that if I use the "Wrap Text" and Fill > options then the label doesn't fill the width of the window. > > See this mock

Label and wrap text

2005-06-18 Thread Preben Randhol
Hello I was thinking to use a label to present some text for a simple help in my program. The problem is that if I use the "Wrap Text" and Fill options then the label doesn't fill the width of the window. See this mockup: http://www.pvv.org/~randhol/label.png The pixmap is wider as you can see a