Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
xfce4-power-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xfce
xfce4-power-manager
Commits
177a0bb5
Commit
177a0bb5
authored
10 years ago
by
Harald Judt
Browse files
Options
Downloads
Patches
Plain Diff
Reformat code in xfpm_power_set_property
parent
11aa395f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/xfpm-power.c
+15
-15
15 additions, 15 deletions
src/xfpm-power.c
with
15 additions
and
15 deletions
src/xfpm-power.c
+
15
−
15
View file @
177a0bb5
...
...
@@ -1223,22 +1223,22 @@ static void xfpm_power_set_property (GObject *object,
switch
(
prop_id
)
{
case
PROP_PRESENTATION_MODE
:
xfpm_power_change_presentation_mode
(
power
,
g_value_get_boolean
(
value
));
break
;
case
PROP_PRESENTATION_MODE
:
xfpm_power_change_presentation_mode
(
power
,
g_value_get_boolean
(
value
));
break
;
case
PROP_ON_AC_BLANK
:
on_ac_blank
=
g_value_get_int
(
value
);
power
->
priv
->
on_ac_blank
=
on_ac_blank
;
xfpm_update_blank_time
(
power
);
break
;
case
PROP_ON_BATTERY_BLANK
:
on_battery_blank
=
g_value_get_int
(
value
);
power
->
priv
->
on_battery_blank
=
on_battery_blank
;
xfpm_update_blank_time
(
power
);
break
;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID
(
object
,
prop_id
,
pspec
);
break
;
on_ac_blank
=
g_value_get_int
(
value
);
power
->
priv
->
on_ac_blank
=
on_ac_blank
;
xfpm_update_blank_time
(
power
);
break
;
case
PROP_ON_BATTERY_BLANK
:
on_battery_blank
=
g_value_get_int
(
value
);
power
->
priv
->
on_battery_blank
=
on_battery_blank
;
xfpm_update_blank_time
(
power
);
break
;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID
(
object
,
prop_id
,
pspec
);
break
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment