-
Notifications
You must be signed in to change notification settings - Fork 7
/
dialogs.h
35 lines (28 loc) · 1.07 KB
/
dialogs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* dialogs.h: dialogs/user interactions used in pho, an image viewer.
*
* Copyright 2004 by Akkana Peck.
* You are free to use or modify this code under the Gnu Public License.
*/
/* Prompt for an answer. */
extern int Prompt(char* msg, char* yesStr, char* noStr,
char* yesChars, char* noChars);
/* Show or hide the Info dialog. */
extern void ToggleInfo();
extern void UpdateInfoDialog();
/* Show or hide the Keywords dialog. Show will also update it;
* Hide will update the underlying flags.
*/
extern void InitKeywords();
extern void ShowKeywordsDialog();
extern void HideKeywordsDialog();
extern void UpdateKeywordsDialog();
extern void RememberKeywords();
extern void NoCurrentKeywords(); /* use when deleting current image */
/* A function dialogs must call to stay on top of the image window */
extern void KeepOnTop(GtkWidget* dialog);
/* Dialogs need to know the ID of the app's current image window,
* so they can be transient to it.
*/
extern GtkWidget *gWin;
#define IsVisible(dlg) (dlg && dlg->window && (GTK_WIDGET_FLAGS(dlg) & GTK_VISIBLE))