Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guido Gunther
phosh
Commits
8df01ef4
Commit
8df01ef4
authored
Oct 19, 2020
by
Guido Gunther
Browse files
osk-manager: Use g_autoptr
Signed-off-by:
Guido Günther
<
guido.gunther@puri.sm
>
parent
4aa8a1fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/osk-manager.c
View file @
8df01ef4
...
...
@@ -72,7 +72,7 @@ dbus_props_changed_cb (PhoshOsk0SmPuriOSK0 *proxy,
PhoshOskManager
*
self
=
PHOSH_OSK_MANAGER
(
data
);
char
*
property
;
GVariantIter
i
;
GVariant
*
value
;
g_autoptr
(
GVariant
)
value
=
NULL
;
g_variant_iter_init
(
&
i
,
changed_properties
);
while
(
g_variant_iter_next
(
&
i
,
"{&sv}"
,
&
property
,
&
value
))
{
...
...
@@ -80,7 +80,6 @@ dbus_props_changed_cb (PhoshOsk0SmPuriOSK0 *proxy,
if
(
strcmp
(
property
,
"Visible"
)
==
0
)
{
phosh_osk_manager_set_visible
(
self
,
g_variant_get_boolean
(
value
));
}
g_variant_unref
(
value
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment