Re: [PATCH] ANSI C correctness + warning fixes



On 3 Oct 2000, Martin Baulig wrote:

> > +static gint
> > +gtk_widget_real_add_accelerator (GtkWidget *widget, guint accel_signal_id,
> > +				 GtkAccelGroup *accel_group, guint accel_key,
> > +				 GdkModifierType accel_mods, GtkAccelFlags accel_flags)
> > ===========
> > 
> > I'll let Tim comment on this one, but the thing is,
> > gtk_accel_group_handle_add() was meant to be used as the default
> > handler for remove_accelerator, so having to do a workaround like this
> > really cannot be the right way to do things.
> 
> Btw. I did this because gtk_accel_group_handle_add/remove() take GtkObject's
> but klass->add/remote_accelerator expects the first argument to be a
> GtkWidget, so we either need to cast the functions or introduce this static
> helper function.

casting would be the correct thing to do here.

> 
> -- 
> Martin Baulig
> martin gnome org (private)
> baulig suse de (work)
> 

---
ciaoTJ





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