gtk_window_get_accel_group()



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]