diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-05-02 08:04:31 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-05-02 08:04:31 +0000 |
commit | ebdbff44e84856b3847800ef9579ab078abe739e (patch) | |
tree | 1feeee8e60d5715cbea7624f3ce374e4a177c5a2 /gtk/dlg_utils.h | |
parent | f3feac3b1defe697783f220f4c430976c768c044 (diff) |
Add some utilities to:
set the "activate" signal for a widget to call a routine to
activate the "OK" button for a dialog box;
set the "key_press_event" signal for a top-level dialog window
to call a routine to activate the "Cancel" button for a dialog
box if the key being pressed is the <Esc> key;
to make it easier to drive dialog boxes entirely from the keyboard.
Make the "Find Frame" and "Go To Frame" dialog boxes use those
utilities.
svn path=/trunk/; revision=1903
Diffstat (limited to 'gtk/dlg_utils.h')
-rw-r--r-- | gtk/dlg_utils.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gtk/dlg_utils.h b/gtk/dlg_utils.h new file mode 100644 index 0000000000..4b11a2f68d --- /dev/null +++ b/gtk/dlg_utils.h @@ -0,0 +1,26 @@ +/* dlg_utils.h + * Declarations of utilities to use when constructing dialogs + * + * $Id: dlg_utils.h,v 1.1 2000/05/02 08:04:29 guy Exp $ + * + * Ethereal - Network traffic analyzer + * By Gerald Combs <gerald@zing.org> + * Copyright 1998 Gerald Combs + * + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ +void dlg_set_activate(GtkWidget *widget, GtkWidget *ok_button); +void dlg_set_cancel(GtkWidget *widget, GtkWidget *cancel_button); |