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

List:       gtk-app-devel
Subject:    Re: label justification in button
From:       Melvin Hadasht <melvin.hadasht () free ! fr>
Date:       2001-09-25 22:27:44
[Download RAW message or body]

On 25 Sep 2001 18:24:51 -0400 Jonathan Blandford <jrb@redhat.com> wrote:

> Melvin Hadasht <melvin.hadasht@free.fr> writes:
> 
> > Hi,
> > 
> > how can one justify the label of a button ? I tried :
> > 
> > button = gtk_button_new_with("Test");
> > gtk_label_set_justify(GTK_LABEL(GTK_BIN(button)->child),
> > GTK_JUSTIFY_LEFT);
> > 
> > but it remains centered. What am I doing wrong ?
> 
> Try:
>   button = gtk_button_new_with("Test");
>   gtk_misc_set_alignment (GTK_MISC (GTK_BIN (button)->child), 0.0,
0.5);
> 
> Setting the justify only matters with multiple lines of text.
> 
> -Jonathan
> 

Hi,

thanks, this does the job. I'll take it.

Thaks all for your (fast) replies

-- 
Melvin Hadasht

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

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

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