Remove all calls to g_type_init(), it's deprecated
The type system is initialized automatically now.
This commit is contained in:
@ -83,8 +83,6 @@ void
|
|||||||
app_libs_init (GOptionContext *context,
|
app_libs_init (GOptionContext *context,
|
||||||
gboolean no_interface)
|
gboolean no_interface)
|
||||||
{
|
{
|
||||||
g_type_init ();
|
|
||||||
|
|
||||||
g_option_context_add_group (context, gegl_get_option_group ());
|
g_option_context_add_group (context, gegl_get_option_group ());
|
||||||
|
|
||||||
#ifndef GIMP_CONSOLE_COMPILATION
|
#ifndef GIMP_CONSOLE_COMPILATION
|
||||||
|
@ -69,8 +69,6 @@ main (int argc,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
g_type_init ();
|
|
||||||
|
|
||||||
units_init ();
|
units_init ();
|
||||||
|
|
||||||
g_print ("\nTesting GimpConfig ...\n");
|
g_print ("\nTesting GimpConfig ...\n");
|
||||||
|
@ -62,7 +62,6 @@ gimp_init_for_testing (void)
|
|||||||
{
|
{
|
||||||
Gimp *gimp;
|
Gimp *gimp;
|
||||||
|
|
||||||
g_type_init();
|
|
||||||
gimp_log_init ();
|
gimp_log_init ();
|
||||||
gegl_init (NULL, NULL);
|
gegl_init (NULL, NULL);
|
||||||
|
|
||||||
@ -91,7 +90,6 @@ gimp_init_for_gui_testing_internal (gboolean show_gui,
|
|||||||
Gimp *gimp;
|
Gimp *gimp;
|
||||||
|
|
||||||
/* from main() */
|
/* from main() */
|
||||||
g_type_init();
|
|
||||||
gimp_log_init ();
|
gimp_log_init ();
|
||||||
gegl_init (NULL, NULL);
|
gegl_init (NULL, NULL);
|
||||||
|
|
||||||
|
@ -264,7 +264,6 @@ main (int argc,
|
|||||||
Gimp *gimp;
|
Gimp *gimp;
|
||||||
int result;
|
int result;
|
||||||
|
|
||||||
g_type_init ();
|
|
||||||
g_test_init (&argc, &argv, NULL);
|
g_test_init (&argc, &argv, NULL);
|
||||||
|
|
||||||
gimp_test_utils_set_gimp2_directory ("GIMP_TESTING_ABS_TOP_SRCDIR",
|
gimp_test_utils_set_gimp2_directory ("GIMP_TESTING_ABS_TOP_SRCDIR",
|
||||||
|
@ -212,7 +212,6 @@ remove_non_existing (GimpTestFixture *f,
|
|||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
g_type_init ();
|
|
||||||
g_test_init (&argc, &argv, NULL);
|
g_test_init (&argc, &argv, NULL);
|
||||||
|
|
||||||
ADD_TEST (insert_and_lookup);
|
ADD_TEST (insert_and_lookup);
|
||||||
|
@ -971,7 +971,6 @@ main (int argc,
|
|||||||
Gimp *gimp;
|
Gimp *gimp;
|
||||||
int result;
|
int result;
|
||||||
|
|
||||||
g_type_init ();
|
|
||||||
g_test_init (&argc, &argv, NULL);
|
g_test_init (&argc, &argv, NULL);
|
||||||
|
|
||||||
gimp_test_utils_set_gimp2_directory ("GIMP_TESTING_ABS_TOP_SRCDIR",
|
gimp_test_utils_set_gimp2_directory ("GIMP_TESTING_ABS_TOP_SRCDIR",
|
||||||
|
@ -418,7 +418,6 @@ gimp_main (const GimpPlugInInfo *info,
|
|||||||
gimp_wire_set_writer (gimp_write);
|
gimp_wire_set_writer (gimp_write);
|
||||||
gimp_wire_set_flusher (gimp_flush);
|
gimp_wire_set_flusher (gimp_flush);
|
||||||
|
|
||||||
g_type_init ();
|
|
||||||
gimp_enums_init ();
|
gimp_enums_init ();
|
||||||
|
|
||||||
/* initialize units */
|
/* initialize units */
|
||||||
|
@ -63,8 +63,6 @@ main (gint argc,
|
|||||||
const gchar *folder;
|
const gchar *folder;
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
|
|
||||||
g_type_init ();
|
|
||||||
|
|
||||||
context = g_option_context_new (NULL);
|
context = g_option_context_new (NULL);
|
||||||
g_option_context_add_main_entries (context, main_entries, NULL);
|
g_option_context_add_main_entries (context, main_entries, NULL);
|
||||||
|
|
||||||
|
@ -186,9 +186,6 @@ run (const gchar *name,
|
|||||||
values[0].type = GIMP_PDB_STATUS;
|
values[0].type = GIMP_PDB_STATUS;
|
||||||
values[0].data.d_status = GIMP_PDB_EXECUTION_ERROR;
|
values[0].data.d_status = GIMP_PDB_EXECUTION_ERROR;
|
||||||
|
|
||||||
/* MUST call this before any RSVG funcs */
|
|
||||||
g_type_init ();
|
|
||||||
|
|
||||||
if (strcmp (name, LOAD_PROC) == 0)
|
if (strcmp (name, LOAD_PROC) == 0)
|
||||||
{
|
{
|
||||||
gimp_get_data (LOAD_PROC, &load_vals);
|
gimp_get_data (LOAD_PROC, &load_vals);
|
||||||
|
@ -131,9 +131,6 @@ run (const gchar *name,
|
|||||||
*return_vals = values;
|
*return_vals = values;
|
||||||
values[0].type = GIMP_PDB_STATUS;
|
values[0].type = GIMP_PDB_STATUS;
|
||||||
|
|
||||||
/* MUST call this before any RSVG funcs */
|
|
||||||
g_type_init ();
|
|
||||||
|
|
||||||
gimp_get_data (PLUG_IN_PROC, &save);
|
gimp_get_data (PLUG_IN_PROC, &save);
|
||||||
|
|
||||||
webpagevals.url = g_strdup (save.url);
|
webpagevals.url = g_strdup (save.url);
|
||||||
|
@ -100,8 +100,6 @@ main (gint argc,
|
|||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_type_init ();
|
|
||||||
|
|
||||||
if (help_base)
|
if (help_base)
|
||||||
uri = g_strdup (help_base);
|
uri = g_strdup (help_base);
|
||||||
else
|
else
|
||||||
|
@ -375,7 +375,6 @@ run (const gchar *name,
|
|||||||
values[0].data.d_status = GIMP_PDB_EXECUTION_ERROR;
|
values[0].data.d_status = GIMP_PDB_EXECUTION_ERROR;
|
||||||
|
|
||||||
INIT_I18N();
|
INIT_I18N();
|
||||||
g_type_init();
|
|
||||||
|
|
||||||
if (! strcmp (name, EDITOR_PROC))
|
if (! strcmp (name, EDITOR_PROC))
|
||||||
image_ID = param[1].data.d_image;
|
image_ID = param[1].data.d_image;
|
||||||
|
@ -173,7 +173,7 @@ main (int argc,
|
|||||||
char *argv[])
|
char *argv[])
|
||||||
{
|
{
|
||||||
g_set_prgname ("xmpdump");
|
g_set_prgname ("xmpdump");
|
||||||
g_type_init();
|
|
||||||
if (argc > 1)
|
if (argc > 1)
|
||||||
{
|
{
|
||||||
for (argv++, argc--; argc; argv++, argc--)
|
for (argv++, argc--; argc; argv++, argc--)
|
||||||
|
Reference in New Issue
Block a user