RE: Text layout in a GtkLabel
- From: "Ian Puleston" <ian underpressuredivers com>
- To: <gtk-list gnome org>
- Subject: RE: Text layout in a GtkLabel
- Date: Wed, 29 Oct 2008 21:43:38 -0700
> -----Original Message-----
> From: gtk-list-bounces gnome org [mailto:gtk-list-bounces gnome org] 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]