RE: Text layout in a GtkLabel

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

 



> -----Original Message-----
> From: gtk-list-bounces@xxxxxxxxx [mailto:gtk-list-bounces@xxxxxxxxx] On
> Behalf Of Ian Puleston
> Sent: Wednesday, October 29, 2008 9:02 PM
> 
> Thanks, I'll look into using gtk_label_get_layout().

Unfortunately, pango_layout_set_indent() doesn't seem to have any effect on
the label of the message dialog. After creating the dialog via
gtk_message_dialog_new() and before calling gtk_dialog_run() I added this:

  PangoLayout *pLayout =
gtk_label_get_layout(GTK_LABEL(GTK_MESSAGE_DIALOG(dlgWin)->label));
  pango_layout_set_indent(pLayout, -20);

And nothing changed. I also tried pango_layout_set_width() and
pango_layout_set_alignment() and none had any effect. To check the returned
layout pointer seems correct I called pango_layout_get_text() on it and that
returned the text that I had passed to gtk_message_dialog_new().

:-(

Ian



_______________________________________________
gtk-list mailing list
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