projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8690984
)
GApplication: create local commandline properly
author
Ryan Lortie
<desrt@desrt.ca>
Thu, 21 Oct 2010 12:02:41 +0000
(14:02 +0200)
committer
Ryan Lortie
<desrt@desrt.ca>
Thu, 21 Oct 2010 12:02:41 +0000
(14:02 +0200)
Don't pass a gchar** to g_object_new() when a GVariant* is expected.
gio/gapplication.c
patch
|
blob
|
history
diff --git
a/gio/gapplication.c
b/gio/gapplication.c
index
63f9a3f
..
cea56e0
100644
(file)
--- a/
gio/gapplication.c
+++ b/
gio/gapplication.c
@@
-1053,9
+1053,11
@@
g_application_run (GApplication *application,
else
{
GApplicationCommandLine *cmdline;
+ GVariant *v;
+ v = g_variant_new_bytestring_array ((const gchar **) arguments, -1);
cmdline = g_object_new (G_TYPE_APPLICATION_COMMAND_LINE,
- "arguments",
arguments
, NULL);
+ "arguments",
v
, NULL);
g_signal_emit (application,
g_application_signals[SIGNAL_COMMAND_LINE],
0, cmdline, &status);