Re: one function to go...
- From: Andreas RÃnnquist <mailinglists gusnan se>
- To: gtk-app-devel-list gnome org
- Subject: Re: one function to go...
- Date: Sun, 23 Dec 2012 22:57:47 +0100
On Sun, 23 Dec 2012 13:39:46 -0800,
Gary Kline<kline thought org> wrote:
guys,
I need one 'quit' button in a small widget that says via the
label = gtk_label_new("File does not exist");, and displays
"OK" with the "Enter" key icon. Instead of having the user
click on a "Quit" or "Close" button, just hitting "Enter"
would return control to the calling function. I already have
the "Close" code roughed out. I want the GTK_BUTTON_OK in
there to let hitting "Enter" work.
thanks for any clues.
Do you mean that you have a OK button, and that button should be
activated when pressing enter?
In that case, the function gtk_widget_grab_focus might help:
http://developer.gnome.org/gtk3/3.6/GtkWidget.html#gtk-widget-grab-focus
-- Andreas RÃnnquist
mailinglists gusnan se
gusnan gusnan se
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]