aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/dlg_utils.c
AgeCommit message (Collapse)AuthorFilesLines
2000-08-23Bleah. What was I thinking? "dlg_window_new()" should take the titleGuy Harris1-2/+3
for the dialog window as an argument (as various dialog creators in GTK+ do), not oblige every caller of it to cut-and-paste a "gtk_window_set_title()" call after it. svn path=/trunk/; revision=2345
2000-07-05Add a "dlg_window_new()" routine, which creates a GTK_WINDOW_DIALOGGuy Harris1-1/+14
window and makes it transient for the top-level window; the transient-for at least provides a hint to X window managers to minimize the dialog if the main window is minimized; keep the dialog on top of the main window in the Z order for windows; perhaps (if there are any window managers that actually *do* this) even put it atop the main window in the X-Y plane (KWM doesn't and I seem to remember that the Exceed X server for Windows doesn't). It's generally considered the Right Thing To Do for dialog boxes. Use that routine to create dialog boxes, rather than doing it directly in the code for that dialog box. svn path=/trunk/; revision=2112
2000-05-26Don't duplicate the "gtk_radio_button_new_with_label()" andGuy Harris1-39/+38
"gtk_check_button_new_with_label()" code, just call those routines and then fix up the label, as suggested by Dermot Musgrove on the gtk mailing list. svn path=/trunk/; revision=2009
2000-05-08Add functions to create buttons whose labels specify mnemonics, i.e.Guy Harris1-1/+61
that contain an "_" preceding a letter, indicating that the letter is to be underlined in the label, and that if the key for that letter is pressed (either with Alt or without it) in the dialog box to which the button belongs, and the widget with the input focus doesn't do anything with that button, the button is sent the "clicked" signal. Attach mnemonics to the buttons in the "Display->Options" dialog box. svn path=/trunk/; revision=1915
2000-05-02Add some utilities to:Guy Harris1-0/+91
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