Re: Enabling return for dialog with focus on gtk_entry

2010-03-13 Thread Manu TM
I made something similar, some times ago, sending GTK_RESPONSE_OK: static gint enter_key_pressed_in_entry(GtkWidget *widget, GdkEventKey *event, gpointer unused) { widget = widget; event = event; unused = unused; gtk_dialog_response(GTK_DIALOG(dialog), GTK_RESPONSE_OK); return TR

Enabling return for dialog with focus on gtk_entry

2010-03-13 Thread Frank Lanitz
Hi list, I'm not sure whether you can help me here out. I'm looking for a way to directly send GTK_RESPONSE_ACCEPT by hitting return, even on dialogs where a GTK Entry or a ComboBox is having the focus. Do you might have an idea how to do this or some code snippet I can have a look at? Thanks,