Re: Custom widget headache

2006-06-01 Thread Daniel Haude
On Wed, 31 May 2006 18:06:08 +0200, David Nečas (Yeti) <[EMAIL PROTECTED]> wrote: What the assignment *area = area_null is supposed to do? God I'm stupid. Actually, this single line would have been enough as a reply. Thanks for wasting your time with me. I really appreciate it. Well, pr

Re: Custom widget headache

2006-05-31 Thread Yeti
On Wed, May 31, 2006 at 05:06:50PM +0200, Daniel Haude wrote: > > I changed over to the g_type system. Actually there wasn't much to change > except in the > cw_area_get_type() function. > > Alas, I still get exactly the same output. Note I only read your code until I find a problem, so this t

Re: Custom widget headache

2006-05-31 Thread Daniel Haude
On Wed, 31 May 2006 16:33:16 +0200, David Nečas (Yeti) <[EMAIL PROTECTED]> wrote: OK, According to the GtkDial example at http://www.gtk.org/tutorial/ I changed over to the g_type system. Actually there wasn't much to change except in the cw_area_get_type() function. Alas, I still get

Re: Custom widget headache

2006-05-31 Thread Daniel Haude
On Wed, 31 May 2006 16:33:16 +0200, David Nečas (Yeti) <[EMAIL PROTECTED]> wrote: If the Gtk+ tutorial http://www.gtk.org/tutorial/ mentions GtkType, GtkTypeInfo or gtk_type_unique() anywhere, it should be immediately fixed. Ooops -- I'm using the docs that came with my distro (Debian st

Re: Custom widget headache

2006-05-31 Thread Yeti
On Wed, May 31, 2006 at 04:15:38PM +0200, Daniel Haude wrote: > Hello folks, > > I'm trying to build a custom widget, following the route that is outlined > for the "GtkDial" widget in the GTK+ tutorial. I'm already stuck at the > very beginning -- type registration. My widget is called "cw_ar

Custom widget headache

2006-05-31 Thread Daniel Haude
Hello folks, I'm trying to build a custom widget, following the route that is outlined for the "GtkDial" widget in the GTK+ tutorial. I'm already stuck at the very beginning -- type registration. My widget is called "cw_area", and I followed the usual naming conventions which will be helpfu