RE: How do I left justify



Doesn't seem to work.  WHere would it be inserted.
See below my attemptsB

On Tue, 24 Sep 2002, CAVEY GERARD wrote:

> heil
> The label text can be justified using: 
> 
> 
> void gtk_label_set_justify( GtkLabel         *label,
>                             GtkJustification  jtype );
> 
> Values for jtype are: 
> 
> GTK_JUSTIFY_LEFT 
> GTK_JUSTIFY_RIGHT 
> GTK_JUSTIFY_CENTER (the default) 
> GTK_JUSTIFY_FILL 
> 
> so just get ur labels and justify as u wish
> 
> :D
> 
> 
> -----Message d'origine-----
> De : Billy Patton [mailto:bpatton dal asp ti com]
> Envoyé : mardi 24 septembre 2002 14:44
> À : Gtk users
> Objet : How do I left justify
> 
> 
> How do I left justify objects placed into a list?
> 
> Snippett:
> 
>   qsort(clist,ncells,64,strcmp);
>   for (i = 0; i < ncells; i++)
>   {
>     gchar         *string ;
>     GtkWidget     *label
>                   ,*list_item
>     ;
>     cp = clist[i];
>     if (! strcmp("BARINFO",cp)) continue;
>     label     = gtk_label_new(cp);

put it here now worky

>     list_item = gtk_list_item_new();
>     gtk_container_add(GTK_CONTAINER(list_item), label);
>     gtk_widget_show(label);
>     gtk_container_add(GTK_CONTAINER(list), list_item);
>     gtk_widget_show(list_item);
>     gtk_label_get(GTK_LABEL(label), &string);
>     gtk_object_set_data(GTK_OBJECT(list_item),
>                         list_item_data_key,
>                         string);

put it here no worky :(

>   }
>   gtk_widget_show(mw);
> 
> 
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
> 
> 
> *************************************************************************
> Ce message et toutes les pieces jointes (ci-apres le "message") sont
> confidentiels et etablis a l'intention exclusive de ses destinataires.
> Toute utilisation ou diffusion non autorisee est interdite. 
> Tout message electronique est susceptible d'alteration. 
> SG Asset Management et ses filiales declinent toute responsabilite au titre
> de ce message s'il a ete altere, deforme ou falsifie.
> 
> Découvrez l'offre et les services de SG Asset Management sur le site
> www.sgam.fr 
> 
> 				********
> 
> This message and any attachments (the "message") are confidential and
> intended solely for the addressees.
> Any unauthorised use or dissemination is prohibited. 
> E-mails are susceptible to alteration.   
> Neither SG Asset Management nor any of its subsidiaries or affiliates shall
> be liable for the message if altered, changed or falsified. 
> 
> *************************************************************************
> 
> 
> 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]