Shortcut key

Hi all,

I am facing some problem in the allocation of shotcut keys. Anything wrong with
my codes? Couldn't seem to get any response from the keyboard. Thanks.



static GnomeUIInfo menu[]=
    NULL, default_cb, NULL, NULL, 0, 0, 'h', GDK_CONTROL_MASK, NULL}

GtkWidget *
create_start (void)
  GtkWidget *start;

  start = gtk_window_new (GTK_WINDOW_TOPLEVEL);

  GtkAccelGroup *accel_group;

gtk_widget_add_accelerator (menu[0].widget, "activate", accel_group, GDK_h,
                               0, GTK_ACCEL_VISIBLE);

   gtk_window_add_accel_group (GTK_WINDOW(start), accel_group);


default_cb    (GtkEditable   *editable
              gpointer       user_data);

Join the world?s largest e-mail service with MSN Hotmail.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]