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
72a65bbd
Commit
72a65bbd
authored
15 years ago
by
Ali Abdallah
Browse files
Options
Downloads
Patches
Plain Diff
*: Fix minor issue of displaying adapter icon on desktop computers
*: Minor changes in the glade file. (Old svn revision: 7415)
parent
5ccde9b8
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ChangeLog
+4
-0
4 additions, 0 deletions
ChangeLog
settings/xfpm-settings.glade
+31
-31
31 additions, 31 deletions
settings/xfpm-settings.glade
src/xfpm-supply.c
+16
-0
16 additions, 0 deletions
src/xfpm-supply.c
with
51 additions
and
31 deletions
ChangeLog
+
4
−
0
View file @
72a65bbd
2009-05-24 15:30 Ali aliov@xfce.org
*: Fix minor issue of displaying adapter icon on desktop computers
*: Minor changes in the glade file.
2009-05-21 15:00 Ali aliov@xfce.org
*: Properly free the inhibitor data when the inhibitor
*: Don't accept events at all if they were not mapped.
...
...
This diff is collapsed.
Click to expand it.
settings/xfpm-settings.glade
+
31
−
31
View file @
72a65bbd
...
...
@@ -334,37 +334,6 @@
<property
name=
"position"
>
0
</property>
</packing>
</child>
<child>
<widget
class=
"GtkVBox"
id=
"vbox1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"orientation"
>
vertical
</property>
<child>
<widget
class=
"GtkLabel"
id=
"label9"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
Put the computer to sleep when inactive for:
</property>
</widget>
<packing>
<property
name=
"position"
>
0
</property>
</packing>
</child>
<child>
<widget
class=
"GtkHScale"
id=
"inactivity-on-ac"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"adjustment"
>
30 30 360 1 10 10
</property>
<property
name=
"digits"
>
0
</property>
<property
name=
"value_pos"
>
bottom
</property>
</widget>
<packing>
<property
name=
"position"
>
1
</property>
</packing>
</child>
</widget>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
</widget>
</child>
</widget>
...
...
@@ -386,6 +355,37 @@
<property
name=
"position"
>
0
</property>
</packing>
</child>
<child>
<widget
class=
"GtkVBox"
id=
"vbox1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"orientation"
>
vertical
</property>
<child>
<widget
class=
"GtkLabel"
id=
"label9"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
Put the computer to sleep when inactive for:
</property>
</widget>
<packing>
<property
name=
"position"
>
0
</property>
</packing>
</child>
<child>
<widget
class=
"GtkHScale"
id=
"inactivity-on-ac"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"adjustment"
>
30 30 360 1 10 10
</property>
<property
name=
"digits"
>
0
</property>
<property
name=
"value_pos"
>
bottom
</property>
</widget>
<packing>
<property
name=
"position"
>
1
</property>
</packing>
</child>
</widget>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
</widget>
</child>
<child>
...
...
This diff is collapsed.
Click to expand it.
src/xfpm-supply.c
+
16
−
0
View file @
72a65bbd
...
...
@@ -48,6 +48,7 @@
#include
"xfpm-marshal.h"
static
void
xfpm_supply_finalize
(
GObject
*
object
);
static
void
xfpm_supply_refresh_tray_icon
(
XfpmSupply
*
supply
);
#define XFPM_SUPPLY_GET_PRIVATE(o) \
(G_TYPE_INSTANCE_GET_PRIVATE((o), XFPM_TYPE_SUPPLY, XfpmSupplyPrivate))
...
...
@@ -117,6 +118,12 @@ xfpm_supply_has_inhibit_changed_cb (XfpmInhibit *inhibit, gboolean inhibited, Xf
supply
->
priv
->
inhibited
=
inhibited
;
}
static
void
xfpm_supply_tray_settings_changed
(
XfpmSupply
*
supply
)
{
xfpm_supply_refresh_tray_icon
(
supply
);
}
static
void
xfpm_supply_class_init
(
XfpmSupplyClass
*
klass
)
{
...
...
@@ -175,6 +182,9 @@ xfpm_supply_init (XfpmSupply *supply)
g_signal_connect
(
supply
->
priv
->
inhibit
,
"has-inhibit-changed"
,
G_CALLBACK
(
xfpm_supply_has_inhibit_changed_cb
),
supply
);
g_signal_connect_swapped
(
supply
->
priv
->
conf
,
"tray_icon_settings_changed"
,
G_CALLBACK
(
xfpm_supply_tray_settings_changed
),
supply
);
}
static
void
...
...
@@ -218,7 +228,13 @@ xfpm_supply_refresh_tray_icon (XfpmSupply *supply)
xfpm_tray_icon_set_visible
(
supply
->
priv
->
tray
,
TRUE
);
}
else
{
xfpm_tray_icon_set_visible
(
supply
->
priv
->
tray
,
FALSE
);
}
}
else
{
xfpm_tray_icon_set_visible
(
supply
->
priv
->
tray
,
FALSE
);
}
}
...
...
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