[Glade-users] How can I get data from event using libglade?



Brian Wagener wrote:
void on_test_key_press_event(GtkWidget *w, GdkEvent *e, gpointer ptr){
        printf("The key pressed was %d\n",ptr);
}

ptr is not the key.  The key is in the GdkEvent structure.

-- 
James Cameron                                      (cameron stl dec com)





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