1 /* GPL'd (C) 1999-2000 Felipe Bergo -- bergo@seul.org */
5 This module is built up of the following files:
8 msgbox.cc _OR_ msgbox.c
30 MSGBOX_ICON_EXCLAMATION
,
53 obs 1: this call blocks until the user picks a choice.
54 obs 2: parent can be NULL.
55 obs 3: you must have a gtk_main loop running before calling it.
58 MsgBoxResult
message_box(GtkWindow
*parent
,
65 excerpt from my 900-page book
67 "The Ultimate Guide to Message Box Icons
68 Felipe Bergo - 0th edition
69 Prentice Room publishers,
72 MSGBOX_ICON_NONE No icon.
74 MSGBOX_ICON_ERROR Should be used on errors, i.e.,
75 something wrong really happened.
76 Currently included icon is a white
77 cross in a red circle. "bong.xpm"
79 MSGBOX_ICON_QUESTION Should be used on any questions, like
80 confirmations. Currently included
81 icon is a white question mark in a
82 green circle. "question.xpm"
84 MSGBOX_ICON_EXCLAMATION Should be used on warnings, like when
85 your code tries to allocate a resource
86 and it is busy (and being busy is "normal").
87 Currently included icon is a black exclamation
88 mark in an yellow triangle.
90 MSGBOX_ICON_INFO Should be used on general informative
91 messages, like "Operation Finished",
92 "Scan finished: 999999 blocks,
93 999998 bad, 1 good.", and the like.
94 Currently included icon is a white "i"
97 The return value is an enum of MsgBoxResult type.