mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 10:20:07 +00:00
tests/testmountoperation.c: Fix build on Windows
Sadly, we can't just use an interger for a GPid on Windows, so just cast it. Sounds silly for non-Windows, but that's life...
This commit is contained in:
parent
6f5d18a9f5
commit
1a5a65acd0
@ -148,11 +148,11 @@ main (int argc, char *argv[])
|
|||||||
GPid pid;
|
GPid pid;
|
||||||
|
|
||||||
pids = g_array_new (TRUE, FALSE, sizeof (GPid));
|
pids = g_array_new (TRUE, FALSE, sizeof (GPid));
|
||||||
pid = 1000;
|
pid = (GPid)1000;
|
||||||
g_array_append_val (pids, pid);
|
g_array_append_val (pids, pid);
|
||||||
pid = 2000;
|
pid = (GPid)2000;
|
||||||
g_array_append_val (pids, pid);
|
g_array_append_val (pids, pid);
|
||||||
pid = 3000;
|
pid = (GPid)3000;
|
||||||
g_array_append_val (pids, pid);
|
g_array_append_val (pids, pid);
|
||||||
|
|
||||||
g_signal_emit_by_name (op, "show-processes", "Foo\nbar", pids, choices);
|
g_signal_emit_by_name (op, "show-processes", "Foo\nbar", pids, choices);
|
||||||
|
Loading…
Reference in New Issue
Block a user