Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: eab6b282bf
Fetching contributors…

Cannot retrieve contributors at this time

file 33 lines (27 sloc) 1.022 kb
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
/*
* 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();

/* 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))
Something went wrong with that request. Please try again.