Re: Bug 490017 -- Feature Request: GTK MIDI-Learn functionality

2007-10-27 Thread Stefan Kost
Hi, ricardo colon schrieb: > I just submitted a feature request to bugzilla. > I chose to post this message to gtk-devel-list since the feature > is related to the gtk input method API. > > I'd like to hear your comments. > I currently do this in buzztard [1] with a helper subsystem (btic). The

Re: Chaining Up (GLib Tutorial Error)

2007-10-27 Thread Yevgen Muntyan
Phil Lello wrote: > According to the GObject tutorial, chaining-up in > constructor/dispose/finalize code should be handled as follows: > > static void > b_method_to_call (B *obj, int a) > { > BClass *klass; > AClass *parent_class; > klass = B_GET_CLASS (obj); > parent_class = g_type_class

Re: Chaining Up (GLib Tutorial Error)

2007-10-27 Thread Emmanuele Bassi
On Sat, 2007-10-27 at 14:07 +0100, Phil Lello wrote: > According to the GObject tutorial, chaining-up in > constructor/dispose/finalize code should be handled as follows: > > static void > b_method_to_call (B *obj, int a) > { > BClass *klass; > AClass *parent_class; > klass = B_GET_CLASS (

GBoxed with reference-counted objects

2007-10-27 Thread Phil Lello
Hi all, I'm implementing a GtkWidget derived widget with a GAsyncQueue as a property. GAsyncQueue implements reference counting, but isn't derived from GObject. It has been suggested that I wrap this in a GBoxed type, and use GParamSpecBoxed. If my GBoxedCopyFunc simply increases the reference co

Re: gtk_show_help and gtk_show_url

2007-10-27 Thread Matthew Paul Thomas
On Oct 26, 2007, at 10:14 AM, Shaun McCance wrote: > > On Thu, 2007-10-25 at 17:36 -0700, Matthew Paul Thomas wrote: > ... >> I think that's a valid concern, but an annoying solution. I would >> rather that any updated API for opening a help page in Gnome had two >> compulsory parameters -- one for

Re: gtk_show_help and gtk_show_url

2007-10-27 Thread Matthew Paul Thomas
Sorry to come in here wildly late, but ... On Oct 8, 2007, at 8:34 AM, Shaun McCance wrote: > > On Sun, 2007-10-07 at 17:10 -0400, Havoc Pennington wrote: >> ... >> - in current GNOME, what are the right "parameters" to open a help >> file? (i.e. what values does gtk_help_show() need to open a g

Chaining Up (GLib Tutorial Error)

2007-10-27 Thread Phil Lello
According to the GObject tutorial, chaining-up in constructor/dispose/finalize code should be handled as follows: static void b_method_to_call (B *obj, int a) { BClass *klass; AClass *parent_class; klass = B_GET_CLASS (obj); parent_class = g_type_class_peek_parent (klass); /* do stuff