gtk_window_get_accel_group()
- From: Havoc Pennington <hp redhat com>
- To: gtk-devel-list gnome org
- Subject: gtk_window_get_accel_group()
- Date: 27 Jun 2000 16:15:31 -0400
Hi,
Why not add an "accel_group" field to GtkWindow and then provide:
GtkAccelGroup*
gtk_window_get_accel_group (GtkWindow *window)
{
/* Lazily create it */
if (window->accel_group == NULL)
{
window->accel_group = gtk_accel_group_new ();
gtk_window_add_accel_group (window->accel_group);
}
return window->accel_group;
}
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]