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:
5ff65d8
)
allow NULL state in g_simple_action_new_stateful
author
Ryan Lortie
<desrt@desrt.ca>
Wed, 29 Jun 2011 11:28:15 +0000
(12:28 +0100)
committer
Javier Jardon
<jjardon@gnome.org>
Wed, 29 Jun 2011 15:20:52 +0000
(16:20 +0100)
as an undocumented feature
gio/gsimpleaction.c
patch
|
blob
|
history
diff --git
a/gio/gsimpleaction.c
b/gio/gsimpleaction.c
index
526e02f
..
915a2e6
100644
(file)
--- a/
gio/gsimpleaction.c
+++ b/
gio/gsimpleaction.c
@@
-492,7
+492,8
@@
g_simple_action_new_stateful (const gchar *name,
"parameter-type", parameter_type,
NULL);
- simple->state = g_variant_ref_sink (state);
+ if (state)
+ simple->state = g_variant_ref_sink (state);
return simple;
}