Re: gtk_label_new_with_mnemonic() and gtk_accel_label_new()
- From: murrayc t-online de (Murray Cumming)
- To: James Henstridge <james daa com au>
- Cc: gtk-devel-list <gtk-devel-list gnome org>
- Subject: Re: gtk_label_new_with_mnemonic() and gtk_accel_label_new()
- Date: 30 Nov 2001 12:37:22 +0100
On Fri, 2001-11-30 at 10:30, James Henstridge wrote:
> Murray Cumming wrote:
> >GtkAccelLabel* = gtk_accel_label_new("_something");
> >gtk_accel_label_set_accel_widget(label, entry);
> >
> >?
> >
> AccelLabels are mainly used in menus. They display a label (like a
> normal GtkLabel) plus a key combination on the right. The second call
> here says to watch accelerators on the entry widget. So if you assign
> ctrl+; to the activate signal of the entry, then that key combination
> will be displayed in the accel label beside the text "_something" (note
> that the s is not underlined).
>
> Note that the second call doesn't have anything to do with accelerators
> on the label itself (activating a label isn't very interesting anyway).
>
> The AccelLabel will watch for changes in the accelerators as well. This
> is mainly visible when dynamically changing accels.
Thanks james.
--
Murray Cumming
murrayc usa net
www.murrayc.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]