Updated with upstream update

This commit is contained in:
2023-10-30 15:55:30 -07:00
parent 098531073c
commit 3bbdd873ef
584 changed files with 91827 additions and 70362 deletions

View File

@ -63,7 +63,7 @@ struct _PrintClass
#define PRINT_TYPE (print_get_type ())
#define PRINT (obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PRINT_TYPE, Print))
#define PRINT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PRINT_TYPE, Print))
GType print_get_type (void) G_GNUC_CONST;
@ -76,7 +76,7 @@ static PikaValueArray * print_run (PikaProcedure *procedur
PikaImage *image,
gint n_drawables,
PikaDrawable **drawables,
const PikaValueArray *args,
PikaProcedureConfig *config,
gpointer run_data);
static PikaPDBStatusType print_image (PikaImage *image,
@ -219,7 +219,7 @@ print_run (PikaProcedure *procedure,
PikaImage *image,
gint n_drawables,
PikaDrawable **drawables,
const PikaValueArray *args,
PikaProcedureConfig *config,
gpointer run_data)
{
PikaPDBStatusType status;
@ -382,9 +382,10 @@ print_image (PikaImage *image,
static PikaPDBStatusType
page_setup (PikaImage *image)
{
GtkPrintOperation *operation;
PikaValueArray *return_vals;
gchar *name;
GtkPrintOperation *operation;
PikaProcedure *procedure;
PikaValueArray *return_vals;
gchar *name;
pika_ui_init (PLUG_IN_BINARY);
@ -405,10 +406,8 @@ page_setup (PikaImage *image)
pika_plug_in_set_pdb_error_handler (pika_get_plug_in (),
PIKA_PDB_ERROR_HANDLER_PLUGIN);
return_vals = pika_pdb_run_procedure (pika_get_pdb (),
name,
PIKA_TYPE_IMAGE, image,
G_TYPE_NONE);
procedure = pika_pdb_lookup_procedure (pika_get_pdb (), name);
return_vals = pika_procedure_run (procedure, "image", image, NULL);
pika_value_array_unref (return_vals);
g_free (name);
@ -508,14 +507,18 @@ create_custom_widget (GtkPrintOperation *operation,
#ifndef EMBED_PAGE_SETUP
static PikaValueArray *
print_temp_proc_run (PikaProcedure *procedure,
const PikaValueArray *args,
PikaProcedureConfig *config,
gpointer run_data)
{
PikaImage *image = PIKA_VALUES_GET_IMAGE (args, 0);
PikaImage *image;
g_object_get (config, "image", &image, NULL);
if (print_operation)
print_page_setup_load (print_operation, image);
g_object_unref (image);
return pika_procedure_new_return_values (procedure, PIKA_PDB_SUCCESS, NULL);
}