Re: introspection and broken API

2005-03-28 Thread Ryan McDougall
On Fri, 2005-25-03 at 01:06 -0500, Havoc Pennington wrote: On Fri, 2005-03-25 at 00:45 -0500, Havoc Pennington wrote: - put the main loop only in the GLib layer, no gtk_main visible - hide color allocation, just always use the GdkRGB stuff - fix some of the other examples of weird X

Re: Creating objects without deriving from GObject

2004-07-13 Thread Ryan McDougall
-13-07 at 07:57 -0400, muppet wrote: On Jul 13, 2004, at 10:00 PM, Ryan McDougall wrote: How does one Choose a GType number so it doesn't collide? http://developer.gnome.org/doc/API/2.0/gobject/gobject-Type- Information.html#g-type-fundamental-next I failed to notice this detail, thanks

Creating objects without deriving from GObject

2004-07-13 Thread Ryan McDougall
Hello, I am writing a tutorial on using Glib type system, and developing some simple software as I go. I would like to create class that has no need for GObject (reference counting, properties, etc.), however it appears from the documentation that this makes it a fundamental type. How

Re: RFC: Part 1 of new GObject tutorial

2004-07-17 Thread Ryan McDougall
On Fri, 2004-16-07 at 19:56 +0100, Roger Leigh wrote: Ryan McDougall [EMAIL PROTECTED] writes: As promised I finished the the first part of a tutorial I started writing for the fun of it. It only includes making a pretty lame fundamental class with no inheritance, but its is (hopefully

Re: RFC: GObject FAQ

2004-08-25 Thread Ryan McDougall
On Wed, 2004-25-08 at 02:39 +, Tiago Cogumbreiro wrote: Hello list, I've just created a GObject FAQ where I try to answer, hopefully correctly, some questions I've had while programming with GObject. http://s1x.homelinux.net/documents/gtk/gobject-faq.html I would like to receive

Re: GObject tutorial next version

2004-08-26 Thread Ryan McDougall
On Thu, 2004-26-08 at 08:14 -0400, muppet wrote: On Aug 26, 2004, at 3:33 AM, Ryan McDougall wrote: [spelling errors snipped] by apologizing for digressing, you're digressing. how about a footnote or appendix instead? LOL. Its true that learning any sort of code requires a lot

Re: g_value_new Macro?

2004-08-26 Thread Ryan McDougall
On Thu, 2004-26-08 at 15:59 +0800, James Henstridge wrote: On 26/08/04 14:22, Ryan McDougall wrote: Also, your macro looks like it might break sometimes. The g_value_init() function expects the GValue to be zeroed out (the type field at a minimum), and g_new() doesn't guarantee

Re: GObject tutorial next version

2004-08-26 Thread Ryan McDougall
On Fri, 2004-27-08 at 02:57 +, Tiago Cogumbreiro wrote: One thing I've learned from reading the big reference on GObject documentation[1] is that howtos/quick refs/faqs and theoretical explanations don't, usually, mix. While reading it I usually wanted to I disagree. Sometimes you want to

Re: g_value_new Macro?

2004-08-26 Thread Ryan McDougall
On Thu, 2004-26-08 at 23:16 -0400, muppet wrote: On Aug 26, 2004, at 10:56 PM, Ryan McDougall wrote: GValues are used in code that runs a *lot* (marshaling code for signals, property mechanism, etc), and need to be fast. allocation on the stack is far faster than allocation on the heap

GObject tutorial next version

2004-08-29 Thread Ryan McDougall
Tutorial Copyright Ryan McDougall (2004) Purpose - This document is used for two purposes: one is as a tutorial on learning Glib's GObject Type System, and the other is a step-by-step how-to for using the system. The tutorial proceeds from the point of view of designing an Object-Oriented type

RF Review: a simple tutorial on GTK+ DragNDrop

2005-03-28 Thread Ryan McDougall
http://live.gnome.org/GnomeLove/DragNDropTutorial I tried to make its as clear and correct as I could, but it quite possible there are major errors or generally heinous abuse of the API. In particular the use of X selections may be way off. Please take a look and leave either comments or edits