GtkLabel + PangoLayout
- From: "Leonel Freire" <leonelfreire gmail com>
- To: gtk-app-devel-list gnome org, gtk-list gnome org
- Subject: GtkLabel + PangoLayout
- Date: Mon, 21 May 2007 12:53:03 -0300
/**************************************************************************/
GtkWidget *window;
GtkWidget *label;
PangoLayout *layout;
/* gtk_init() + create window */
...
label = gtk_label_new("");
gtk_container_add(GTK_CONTAINER(window), label);
gtk_widget_show(label);
layout = gtk_label_get_layout(GTK_LABEL(label));
pango_layout_set_text(layout, "TEXT", -1);
gtk_widget_show(window);
gtk_main();
/**************************************************************************/
Why the text isn't updated on the screen? =\
--
Leonel Freire
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]