static void gui_input_askquit ( void   )  [static]

Prompt the user with a message to confirm termination of the application.

Definition at line 99 of file gui_input.c.

00100 {
00101         int ret;
00102         char *msg;
00103 
00104         if (!config_getopt_bool("gui.input.may_quit")) {
00105                 gui_msgbar_warn(_("Use kill(1) to quit."));
00106                 return;
00107         }
00108 
00109         msg = g_strdup_printf(_("Quit %s?"), APP_NAME);
00110         ret = gui_input_askyesno(msg);
00111         g_free(msg);
00112 
00113         if (ret == 0)
00114                 gui_input_quit();
00115 }

Here is the call graph for this function:

 All Data Structures Files Functions Variables Defines
Generated on Mon Mar 15 04:45:15 2010 for herrie by  doxygen 1.6.3