mountoperation: print a GPid as a number on Windows too

There it is a handle, which %d does not take; GTK+ 3 does the same.
This commit is contained in:
Daemonratte 2026-10-19 14:04:29 +02:00
commit 9b568b689f
2 changed files with 2 additions and 2 deletions

View file

@ -62,7 +62,7 @@ _gtk_mount_operation_kill_process (GPid pid,
G_IO_ERROR,
G_IO_ERROR_NOT_SUPPORTED,
_("Cannot kill process with PID %d. Operation is not implemented."),
pid);
(int) (gssize) pid);
return FALSE;
}

View file

@ -879,7 +879,7 @@ add_pid_to_process_list_store (GtkMountOperation *mount_operation,
&pixbuf);
if (name == NULL)
name = g_strdup_printf (_("Unknown Application (PID %d)"), pid);
name = g_strdup_printf (_("Unknown Application (PID %d)"), (int) (gssize) pid);
if (command_line == NULL)
command_line = g_strdup ("");