[Glade-users] GtkButton how to receive key presses even t
- From: mithrandir82 at gmail.com (Mariano Perez-Sauquillo Perera)
- Subject: [Glade-users] GtkButton how to receive key presses even t
- Date: Tue, 15 May 2007 12:33:12 +0200
hi guys,
the only thing that you have to do is :
GtkAccelGroup *accel_group;
*
*
*
gtk_widget_add_accelerator (botonTecla, "clicked", accel_group,
GDK_a, (GdkModifierType) 0,
GTK_ACCEL_VISIBLE);
g_signal_connect ((gpointer) botonTecla, "clicked",
G_CALLBACK (on_boton),
NULL);
*
*
*
gtk_window_add_accel_group (GTK_WINDOW (window), accel_group);
i hope it will help you.
cupp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-users/attachments/20070515/b08471f1/attachment.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]