mirror of https://github.com/GNOME/gimp.git
register a log handler for the "Gimp-Actions" domain.
2004-07-14 Sven Neumann <sven@gimp.org> * app/app_procs.c (app_run): register a log handler for the "Gimp-Actions" domain.
This commit is contained in:
parent
b7e75c5dd7
commit
deb8f7bfc4
|
@ -1,3 +1,8 @@
|
|||
2004-07-14 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/app_procs.c (app_run): register a log handler for the
|
||||
"Gimp-Actions" domain.
|
||||
|
||||
2004-07-14 Bill Skaggs <weskaggs@primate.ucdavis.edu>
|
||||
|
||||
* devel-docs/objects.txt: . . . and removed because it is
|
||||
|
|
|
@ -172,6 +172,28 @@ app_run (const gchar *full_prog_name,
|
|||
Gimp *gimp;
|
||||
GMainLoop *loop;
|
||||
gboolean swap_is_ok;
|
||||
gint i;
|
||||
|
||||
const gchar *log_domains[] =
|
||||
{
|
||||
"Gimp",
|
||||
"Gimp-Actions",
|
||||
"Gimp-Base",
|
||||
"Gimp-Composite",
|
||||
"Gimp-Config",
|
||||
"Gimp-Core",
|
||||
"Gimp-Display",
|
||||
"Gimp-File",
|
||||
"Gimp-GUI",
|
||||
"Gimp-PDB",
|
||||
"Gimp-Paint-Funcs",
|
||||
"Gimp-Plug-In",
|
||||
"Gimp-Text",
|
||||
"Gimp-Tools",
|
||||
"Gimp-Vectors",
|
||||
"Gimp-Widgets",
|
||||
"Gimp-XCF"
|
||||
};
|
||||
|
||||
/* Create an instance of the "Gimp" object which is the root of the
|
||||
* core object system
|
||||
|
@ -187,58 +209,14 @@ app_run (const gchar *full_prog_name,
|
|||
stack_trace_mode,
|
||||
pdb_compat_mode);
|
||||
|
||||
g_log_set_handler ("Gimp",
|
||||
G_LOG_LEVEL_MESSAGE,
|
||||
gimp_message_log_func, &gimp);
|
||||
g_log_set_handler ("Gimp-Base",
|
||||
G_LOG_LEVEL_MESSAGE,
|
||||
gimp_message_log_func, &gimp);
|
||||
g_log_set_handler ("Gimp-Paint-Funcs",
|
||||
G_LOG_LEVEL_MESSAGE,
|
||||
gimp_message_log_func, &gimp);
|
||||
g_log_set_handler ("Gimp-Composite",
|
||||
G_LOG_LEVEL_MESSAGE,
|
||||
gimp_message_log_func, &gimp);
|
||||
g_log_set_handler ("Gimp-Config",
|
||||
G_LOG_LEVEL_MESSAGE,
|
||||
gimp_message_log_func, &gimp);
|
||||
g_log_set_handler ("Gimp-Core",
|
||||
G_LOG_LEVEL_MESSAGE,
|
||||
gimp_message_log_func, &gimp);
|
||||
g_log_set_handler ("Gimp-PDB",
|
||||
G_LOG_LEVEL_MESSAGE,
|
||||
gimp_message_log_func, &gimp);
|
||||
g_log_set_handler ("Gimp-Plug-In",
|
||||
G_LOG_LEVEL_MESSAGE,
|
||||
gimp_message_log_func, &gimp);
|
||||
g_log_set_handler ("Gimp-File",
|
||||
G_LOG_LEVEL_MESSAGE,
|
||||
gimp_message_log_func, &gimp);
|
||||
g_log_set_handler ("Gimp-XCF",
|
||||
G_LOG_LEVEL_MESSAGE,
|
||||
gimp_message_log_func, &gimp);
|
||||
g_log_set_handler ("Gimp-Widgets",
|
||||
G_LOG_LEVEL_MESSAGE,
|
||||
gimp_message_log_func, &gimp);
|
||||
g_log_set_handler ("Gimp-Display",
|
||||
G_LOG_LEVEL_MESSAGE,
|
||||
gimp_message_log_func, &gimp);
|
||||
g_log_set_handler ("Gimp-Tools",
|
||||
G_LOG_LEVEL_MESSAGE,
|
||||
gimp_message_log_func, &gimp);
|
||||
g_log_set_handler ("Gimp-Text",
|
||||
G_LOG_LEVEL_MESSAGE,
|
||||
gimp_message_log_func, &gimp);
|
||||
g_log_set_handler ("Gimp-Vectors",
|
||||
G_LOG_LEVEL_MESSAGE,
|
||||
gimp_message_log_func, &gimp);
|
||||
g_log_set_handler ("Gimp-GUI",
|
||||
G_LOG_LEVEL_MESSAGE,
|
||||
gimp_message_log_func, &gimp);
|
||||
for (i = 0; i < G_N_ELEMENTS (log_domains); i++)
|
||||
g_log_set_handler (log_domains[0],
|
||||
G_LOG_LEVEL_MESSAGE,
|
||||
gimp_message_log_func, &gimp);
|
||||
|
||||
g_log_set_handler (NULL,
|
||||
G_LOG_LEVEL_ERROR | G_LOG_FLAG_FATAL,
|
||||
gimp_error_log_func, &gimp);
|
||||
gimp_error_log_func, &gimp);
|
||||
|
||||
units_init (gimp);
|
||||
|
||||
|
|
Loading…
Reference in New Issue