1
/* LIBGIMP - The GIMP Library
2
* Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public
8
* License as published by the Free Software Foundation; either
9
* version 2 of the License, or (at your option) any later version.
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with this library; if not, write to the
18
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19
* Boston, MA 02111-1307, USA.
22
/* NOTE: This file is autogenerated by pdbgen.pl */
30
* @message: Message to display in the dialog.
32
* Displays a dialog box with a message.
34
* Displays a dialog box with a message. Useful for status or error
35
* reporting. The message must be in UTF-8 encoding.
37
* Returns: TRUE on success.
40
gimp_message (const gchar *message)
42
GimpParam *return_vals;
44
gboolean success = TRUE;
46
return_vals = gimp_run_procedure ("gimp_message",
48
GIMP_PDB_STRING, message,
51
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
53
gimp_destroy_params (return_vals, nreturn_vals);
59
* gimp_message_get_handler:
61
* Returns the current state of where warning messages are displayed.
63
* This procedure returns the way g_message warnings are displayed.
64
* They can be shown in a dialog box or printed on the console where
67
* Returns: The current handler type.
69
GimpMessageHandlerType
70
gimp_message_get_handler (void)
72
GimpParam *return_vals;
74
GimpMessageHandlerType handler = 0;
76
return_vals = gimp_run_procedure ("gimp_message_get_handler",
80
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
81
handler = return_vals[1].data.d_int32;
83
gimp_destroy_params (return_vals, nreturn_vals);
89
* gimp_message_set_handler:
90
* @handler: The new handler type.
92
* Controls where warning messages are displayed.
94
* This procedure controls how g_message warnings are displayed. They
95
* can be shown in a dialog box or printed on the console where gimp
98
* Returns: TRUE on success.
101
gimp_message_set_handler (GimpMessageHandlerType handler)
103
GimpParam *return_vals;
105
gboolean success = TRUE;
107
return_vals = gimp_run_procedure ("gimp_message_set_handler",
109
GIMP_PDB_INT32, handler,
112
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
114
gimp_destroy_params (return_vals, nreturn_vals);