GtkLabel + PangoLayout



/**************************************************************************/
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]