[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk
Subject:    [gtk-list] Re: where's the archive?
From:       Havoc Pennington <rhp () zirx ! pair ! com>
Date:       1999-07-09 14:11:10
[Download RAW message or body]


On Fri, 9 Jul 1999, Elliott Hughes wrote:
> 
> but there isn't. anyone know where it is, if it's still
> available?
>

It's been broken for months, unfortunately. I've tried to use it several
times myself.
 
> while i have your attention, what i want the archive
> for is to find out why gtk_label_set_justify doesn't
> seem to have any effect (i have gtk 1.2.3). is this
> me being stupid, a new bug or a known/fixed bug?
> as far as i can see, my labels are centred no matter
> what i try.
> 

FAQ alert! (Thanks for trying to check the archives; if this were in the
FAQ or archives, as it should be, you would have found it. We need a FAQ
maintainer.)

gtk_label_set_justify() sets the position of multiple lines of text in the
label with respect to each other. That is,

 foo bar bar
 bar foo

 foo bar bar
   bar foo

 foo bar bar
     bar foo

gtk_misc_set_alignment() changes the position of the entire text block
within the label's size allocation, and it's probably what you want. The
two alignment args are 0.0 for top/left and 1.0 for bottom/right and 0.5
for center. 

Havoc



-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic