How to align center 2nd line in a GtkLabel using pango ?

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

 



Hello all,

I need to know how to align to center the second (and others) lines in a
GtkLabel using Pango, i'm a newbbie using Pango + GTK2 and I don't know
how to proceed;

  label_main_r1c2 = gtk_label_new (_("INICIAR\nMÃ\201QUINA"));
  gtk_widget_set_name (label_main_r1c2, "label_main_r1c2");
  gtk_widget_show (label_main_r1c2);
  gtk_fixed_put (GTK_FIXED (fixed_granmmi), label_main_r1c2, 312, 142);
  gtk_widget_set_size_request (label_main_r1c2, 308, 84);
  gtk_label_set_use_markup (GTK_LABEL (label_main_r1c2), TRUE);

In this code fragment (generated by glade-2) the label align in center only the
first line, but the second line doesn't align in center what give-me a ugly result...

This is a bug from Gtk2 (Pango, whatever ?)


I seek in net for a tutorial, but what I found apply for Gtk+1.3 and tags doesn't
works in GTK2 (Gnome2). if someone indicate a good tutorial for Pango I will 
be been thankful


Thanks for all help


-- 
Flavio Alberto Lopes Soares
flavio@xxxxxxxxxxxxxx

MAQPLAS Indústria e Comércio de Máquinas LTDA.
http://www.maqplas.com.br
-- 
Flavio Alberto Lopes Soares
flavio@xxxxxxxxxxxxxx

MAQPLAS Indústria e Comércio de Máquinas LTDA.
http://www.maqplas.com.br
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux