Re: examples/list.c
Hi Deron, Please don't reply to me directly. The entire list should be able to benefit from this discussion. Deron Kazmaier wrote: I'm sure he know that, but is it available or not? I would think it should still be functional otherwise it would not be binary compatible with existing applications. It's available, but you may have problems with it. There have *always* been problems with it IIRC (one of the several reasons its been deprecated since 2.0 [or maybe 2.2]), and it's unsupported and unmaintained. So basically, by using GtkTree or GtkList you are saying, I'm assuming it will work perfectly, because no one will help me with using it, and no one will fix bugs that I find in it. I can almost guarantee you that approach will be problematic. I have my own set of problems with GtkTreeView that prevent me from using it. I suppose the correct thing for me to do would be to simple write my own GtkList. Would probably be easier that fighting GtkTreeView... Why not describe your problems with GtkTreeView instead of just dismissing it out of hand? Perhaps they're just the result of a misunderstanding about how it works. I'll agree that there's a bit of a learning curve to using GtkTreeView, but after you figure out how it works, it's very powerful and flexible and can handle doing just about anything you can think to throw at it. And really, it's not that hard to use. If you intend to do any amount of gtk programming in the future, you'll need to learn it (as the concepts behind GtkTreeView are used in other parts of gtk; see any widget that makes use of GtkTreeModel or GtkCellLayout). Even if this is just a one-off app and you never intend to touch gtk again, you'd likely be saving yourself some time and frustration by learning how to use GtkTreeView properly. -brian ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
examples/list.c
2nd post. I'm just getting warmed up g. Compile with supplied Makefile to gtk+/gtk+-2.14.6/examples/list.c, run sample application, right click on list, the following is printed: (list:17088): Gtk-CRITICAL **: gtk_list_add: assertion `GTK_IS_LIST_ITEM (widget)' failed (list:17088): Gtk-CRITICAL **: gtk_widget_get_parent_window: assertion `GTK_IS_WIDGET (widget)' failed (list:17088): Gdk-CRITICAL **: gdk_window_get_children: assertion `GDK_IS_WINDOW (window)' failed (list:17088): Gtk-CRITICAL **: gtk_widget_get_parent_window: assertion `GTK_IS_WIDGET (widget)' failed ** ** Gtk:ERROR:(/build/buildd/gtk+2.0-2.12.9/gtk/gtkwidget.c:4810):gtk_widget_reparent_fixup_child: assertion failed: (client_data != NULL) Aborted I have placed these gtk examples in my home folder my-projects and they compile without complaint. Is this a linking issue? What is occurring? Dave ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: examples/list.c
Don't use GtkList or GtkTree. They've been deprecated for... I dunno... 7 or 8 years now, and are unmaintained. You should be using GtkTreeView in conjunction with a GtkTreeStore or GtkListStore. -brian Dave Luttinen wrote: 2nd post. I'm just getting warmed up g. Compile with supplied Makefile to gtk+/gtk+-2.14.6/examples/list.c, run sample application, right click on list, the following is printed: (list:17088): Gtk-CRITICAL **: gtk_list_add: assertion `GTK_IS_LIST_ITEM (widget)' failed (list:17088): Gtk-CRITICAL **: gtk_widget_get_parent_window: assertion `GTK_IS_WIDGET (widget)' failed (list:17088): Gdk-CRITICAL **: gdk_window_get_children: assertion `GDK_IS_WINDOW (window)' failed (list:17088): Gtk-CRITICAL **: gtk_widget_get_parent_window: assertion `GTK_IS_WIDGET (widget)' failed ** ** Gtk:ERROR:(/build/buildd/gtk+2.0-2.12.9/gtk/gtkwidget.c:4810):gtk_widget_reparent_fixup_child: assertion failed: (client_data != NULL) Aborted I have placed these gtk examples in my home folder my-projects and they compile without complaint. Is this a linking issue? What is occurring? Dave ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: examples/list.c
I think the programs in the examples folder are quite outdated and probably buggy. Build samples/gtk-demo instead. --tml ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: examples/list.c
look for and use the gtk-demo application thats normallu apart of the devel package. It contains current GTK examples pre-compiled with source immediately available. Also, consider using devhelp, another api document viewer for GTK/GLIB and many others. James, On Wed, 2009-01-21 at 21:42 +, Dave Luttinen wrote: 2nd post. I'm just getting warmed up g. Compile with supplied Makefile to gtk+/gtk+-2.14.6/examples/list.c, run sample application, right click on list, the following is printed: (list:17088): Gtk-CRITICAL **: gtk_list_add: assertion `GTK_IS_LIST_ITEM (widget)' failed (list:17088): Gtk-CRITICAL **: gtk_widget_get_parent_window: assertion `GTK_IS_WIDGET (widget)' failed (list:17088): Gdk-CRITICAL **: gdk_window_get_children: assertion `GDK_IS_WINDOW (window)' failed (list:17088): Gtk-CRITICAL **: gtk_widget_get_parent_window: assertion `GTK_IS_WIDGET (widget)' failed ** ** Gtk:ERROR:(/build/buildd/gtk+2.0-2.12.9/gtk/gtkwidget.c:4810):gtk_widget_reparent_fixup_child: assertion failed: (client_data != NULL) Aborted I have placed these gtk examples in my home folder my-projects and they compile without complaint. Is this a linking issue? What is occurring? Dave ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list