Re: [PATCH] ANSI C correctness + warning fixes
- From: Tim Janik <timj gtk org>
- To: Martin Baulig <martin home-of-linux org>
- Cc: Gtk+ Developers <gtk-devel-list gnome org>
- Subject: Re: [PATCH] ANSI C correctness + warning fixes
- Date: Sat, 7 Oct 2000 03:35:41 +0200 (CEST)
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]