mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 09:53:25 +00:00
plug-ins: fix some glib related deprecations
This commit is contained in:
parent
690c9ae21a
commit
d16734a4e4
7 changed files with 28 additions and 0 deletions
|
@ -358,7 +358,11 @@ play_run (GimpProcedure *procedure,
|
|||
GimpPlay *play;
|
||||
|
||||
play = GIMP_PLAY (gimp_procedure_get_plug_in (procedure));
|
||||
#if GLIB_CHECK_VERSION(2,74,0)
|
||||
play->app = gtk_application_new (NULL, G_APPLICATION_DEFAULT_FLAGS);
|
||||
#else
|
||||
play->app = gtk_application_new (NULL, G_APPLICATION_FLAGS_NONE);
|
||||
#endif
|
||||
|
||||
play->builder = gtk_builder_new_from_string (
|
||||
"<interface>"
|
||||
|
|
|
@ -269,7 +269,11 @@ remap_run (GimpProcedure *procedure,
|
|||
GimpRemap *remap = GIMP_REMAP (run_data);
|
||||
|
||||
remap = GIMP_REMAP (gimp_procedure_get_plug_in (procedure));
|
||||
#if GLIB_CHECK_VERSION(2,74,0)
|
||||
remap->app = gtk_application_new (NULL, G_APPLICATION_DEFAULT_FLAGS);
|
||||
#else
|
||||
remap->app = gtk_application_new (NULL, G_APPLICATION_FLAGS_NONE);
|
||||
#endif
|
||||
remap->image = image;
|
||||
|
||||
remap->builder = gtk_builder_new_from_string (
|
||||
|
|
|
@ -399,7 +399,11 @@ editor_run (GimpProcedure *procedure,
|
|||
|
||||
gimp_ui_init (PLUG_IN_BINARY);
|
||||
|
||||
#if GLIB_CHECK_VERSION(2,74,0)
|
||||
editor->app = gtk_application_new (NULL, G_APPLICATION_DEFAULT_FLAGS);
|
||||
#else
|
||||
editor->app = gtk_application_new (NULL, G_APPLICATION_FLAGS_NONE);
|
||||
#endif
|
||||
g_signal_connect (editor->app, "activate", G_CALLBACK (on_app_activate), editor);
|
||||
|
||||
g_application_run (G_APPLICATION (editor->app), 0, NULL);
|
||||
|
|
|
@ -225,7 +225,11 @@ gfig_run (GimpProcedure *procedure,
|
|||
}
|
||||
|
||||
gfig = GIMP_GFIG (gimp_procedure_get_plug_in (procedure));
|
||||
#if GLIB_CHECK_VERSION(2,74,0)
|
||||
gfig->app = gtk_application_new (NULL, G_APPLICATION_DEFAULT_FLAGS);
|
||||
#else
|
||||
gfig->app = gtk_application_new (NULL, G_APPLICATION_FLAGS_NONE);
|
||||
#endif
|
||||
gfig->success = FALSE;
|
||||
|
||||
gfig->builder = gtk_builder_new_from_string (
|
||||
|
|
|
@ -167,7 +167,11 @@ help_browser_run (GimpProcedure *procedure,
|
|||
gimp_procedure_extension_ready (procedure);
|
||||
gimp_plug_in_extension_enable (gimp_procedure_get_plug_in (procedure));
|
||||
|
||||
#if GLIB_CHECK_VERSION(2,74,0)
|
||||
browser->app = gtk_application_new (NULL, G_APPLICATION_DEFAULT_FLAGS);
|
||||
#else
|
||||
browser->app = gtk_application_new (NULL, G_APPLICATION_FLAGS_NONE);
|
||||
#endif
|
||||
g_signal_connect (browser->app, "activate", G_CALLBACK (on_app_activate), browser);
|
||||
|
||||
g_application_run (G_APPLICATION (browser->app), 0, NULL);
|
||||
|
|
|
@ -469,7 +469,11 @@ ifs_run (GimpProcedure *procedure,
|
|||
gboolean found_parasite = FALSE;
|
||||
|
||||
ifs = GIMP_IFS (gimp_procedure_get_plug_in (procedure));
|
||||
#if GLIB_CHECK_VERSION(2,74,0)
|
||||
ifs->app = gtk_application_new (NULL, G_APPLICATION_DEFAULT_FLAGS);
|
||||
#else
|
||||
ifs->app = gtk_application_new (NULL, G_APPLICATION_FLAGS_NONE);
|
||||
#endif
|
||||
|
||||
ifs->builder = gtk_builder_new_from_string (
|
||||
"<interface>"
|
||||
|
|
|
@ -247,7 +247,11 @@ imap_run (GimpProcedure *procedure,
|
|||
gegl_init (NULL, NULL);
|
||||
|
||||
imap = GIMP_IMAP (gimp_procedure_get_plug_in (procedure));
|
||||
#if GLIB_CHECK_VERSION(2,74,0)
|
||||
imap->app = gtk_application_new (NULL, G_APPLICATION_DEFAULT_FLAGS);
|
||||
#else
|
||||
imap->app = gtk_application_new (NULL, G_APPLICATION_FLAGS_NONE);
|
||||
#endif
|
||||
imap->success = FALSE;
|
||||
|
||||
imap->builder = gtk_builder_new_from_string (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue