Changing the font of a GtkTextTag



Hello,

I am having trouble changing the font of a GtkTextTag.  I am using

  g_object_set((gpointer) tag, "font", "sans 14", NULL);

to change the font to "sans 14".  This works once.  The second time I call
g_object_set, the program crashes with the message

  (testc:1003): Gtk-CRITICAL **: file gtktextbtree.c: line 3418
  (_gtk_text_line_get_data): assertion `line != NULL' failed

I have attached a test program that exhibits this behavior.  Please let me know
if this is the correct way to change the font.  I built the program with

  gcc $(pkg-config --cflags --libs libgnomeui-2.0) test.c -o testc

Thanks,
Alban

Attachment: test.c
Description: test.c



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