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.


Ricky

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


static GnomeUIInfo menu[]=
{
   {GNOME_APP_UI_ITEM, N_("_HOSTS"),
    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);

   :
   :
}


void
default_cb    (GtkEditable   *editable
              gpointer       user_data);





_________________________________________________________________
Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com




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