Re: Mnemonics patch
- From: Helmethead <hoshem mel comcen com au>
- To: Alexander Larsson <alla lysator liu se>
- Cc: gtk-devel-list gnome org, otaylor redhat com, timj gtk org
- Subject: Re: Mnemonics patch
- Date: Thu, 22 Mar 2001 03:36:30 +1100
Just idly browsing through..
On Wed, Mar 21, 2001 at 12:51:02PM +0100, Alexander Larsson wrote:
> +static void
> +gtk_label_setup_mnemonic (GtkLabel *label, guint last_key)
> +{
> + GtkWidget *toplevel;
> +
> + if ((last_key != GDK_VoidSymbol) && label->mnemonic_window)
> + gtk_window_remove_mnemonic (label->mnemonic_window,
> + last_key,
> + GTK_WIDGET (label));
> +
> + if (label->mnemonic_keyval == GDK_VoidSymbol)
> + return;
> +
> + toplevel = gtk_widget_get_toplevel (GTK_WIDGET (label));
> +
> + if (GTK_IS_WINDOW (toplevel))
> + gtk_window_add_mnemonic (GTK_WINDOW (toplevel),
> + label->mnemonic_keyval,
> + GTK_WIDGET (label));
Looks like you meant to have a label->mnemonic_window = toplevel; here :)
> +}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]