Example programs



Going through your example programs and found some
that when compiled, produce an error during use. I am
using gtk v. 2.4.10 with glib v. 2.4.5

example/menu/itemfactory.c gives me
     (itemfactory.c:780): Gtk-CRITICAL **: file
gtkmenu.c:
     line 1588: assertion `accel_path[0] == '<'
     && strchr (accel_path, '/')' failed
  I believe it should be 
     `accel_path[0] == '<' || strchr (accel_path,
'/')' at line 1588 of
  gtkmenu.c instead. After modifying the code, it
produces no errors.

example/list/list.c, after right clicking on a
selection the first time
it gives me
  (list.exe:556): Gtk-CRITICAL **: file gtklist.c:
line 832: assertion
    `GTK_IS_LIST_ITEM (widget)' failed
  (list.exe:556): GLib-GObject-WARNING **: invalid
unclassed pointer in
     cast to `GtkWidget'
  (list.exe:556): GLib-GObject-WARNING **: invalid
unclassed pointer in
     cast to `GObject'
  (list.exe:556): GLib-GObject-CRITICAL **: file
gobject.c: line 624:
     assertion `G_IS_OBJECT (object)' failed
    
tests/testcombochange.c: Click animate after running
it gives
   (testcombochange.exe:3372): Gtk-CRITICAL **: file
gtkliststore.c:
     line 1662: assertion `new_order != NULL' failed

tests/treestoretest.c: clicking on
gtk_tree_store_insert of the Sorted List window gives
   (treestoretest.exe:3580): GLib-GObject-WARNING **:
invalid cast
     from 'GtkTreeModelSort' to `GtkTreeStore'
   (treestoretest.exe:3580): Gtk-CRITICAL **: file
gtktreestore.c: line 
     1143: assertion `GTK_IS_TREE_STORE (tree_store)'
failed
   (treestoretest.exe:3580): Gtk-CRITICAL **: file
gtktreestore.c: line 
     1044: assertion `VALID_ITER (iter, tree_store)'
failed
   (treestoretest.exe:3580): Gtk-CRITICAL **: file
gtktreestore.c: line 
     1044: assertion `VALID_ITER (iter, tree_store)'
failed


Stephen


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



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