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
cd42d2f6
Commit
cd42d2f6
authored
16 years ago
by
Ali Abdallah
Browse files
Options
Downloads
Patches
Plain Diff
Fix compilation issue, show lcd brightness option when XFPM is compiled without DPMS
(Old svn revision: 6582)
parent
503e251f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
configure.ac.in
+1
-1
1 addition, 1 deletion
configure.ac.in
src/xfpm-settings.c
+25
-23
25 additions, 23 deletions
src/xfpm-settings.c
with
26 additions
and
24 deletions
configure.ac.in
+
1
−
1
View file @
cd42d2f6
...
...
@@ -4,7 +4,7 @@ m4_define([xfpm_version_minor], [6])
m4_define([xfpm_version_micro], [0])
m4_define([xfpm_version_build], [])
m4_define([xfpm_version_tag],[])
m4_define([xfpm_version], [xfpm_version_major().xfpm_version_minor().xfpm_version_micro()]
)
m4_define([xfpm_version], [xfpm_version_major().xfpm_version_minor().xfpm_version_micro()
ifelse(xfpm_version_tag(), [svn], [xfpm_version_tag()-xfpm_version_build()], [xfpm_version_tag()])
])
AC_INIT([xfce4-power-manager], [xfpm_version], [http://bugzilla.xfce.org/])
AC_PREREQ(2.50)
...
...
This diff is collapsed.
Click to expand it.
src/xfpm-settings.c
+
25
−
23
View file @
cd42d2f6
...
...
@@ -1108,7 +1108,7 @@ _cursor_changed_cb(GtkIconView *view,gpointer data)
}
static
GtkWidget
*
xfpm_settings_tree_view
(
gboolean
is_laptop
,
gboolean
ups
,
guint8
govs
)
xfpm_settings_tree_view
(
gboolean
is_laptop
,
gboolean
ups
,
guint8
govs
,
gboolean
lcd
)
{
GdkPixbuf
*
pix
;
GtkWidget
*
view
;
...
...
@@ -1183,20 +1183,28 @@ xfpm_settings_tree_view(gboolean is_laptop,gboolean ups,guint8 govs)
}
/// Dpms settings
#ifdef HAVE_DPMS
pix
=
xfpm_load_icon
(
"display"
,
38
);
gtk_list_store_append
(
list_store
,
&
iter
)
;
if
(
pix
)
{
gtk_list_store_set
(
list_store
,
&
iter
,
0
,
pix
,
1
,
_
(
"M
onitor
S
ettings
"
),
2
,
3
,
-
1
)
;
g_object_unref
(
pix
);
}
else
gboolean
show_monitor_settings
=
FALSE
;
#ifdef HAVE_DPMS
show_monitor_settings
=
TRUE
;
#else
if
(
lcd
)
show_m
onitor
_s
ettings
=
TRUE
;
#endif
if
(
show_monitor_settings
)
{
gtk_list_store_set
(
list_store
,
&
iter
,
1
,
_
(
"Monitor Settings"
),
2
,
3
,
-
1
);
pix
=
xfpm_load_icon
(
"display"
,
38
);
gtk_list_store_append
(
list_store
,
&
iter
);
if
(
pix
)
{
gtk_list_store_set
(
list_store
,
&
iter
,
0
,
pix
,
1
,
_
(
"Monitor Settings"
),
2
,
3
,
-
1
);
g_object_unref
(
pix
);
}
else
{
gtk_list_store_set
(
list_store
,
&
iter
,
1
,
_
(
"Monitor Settings"
),
2
,
3
,
-
1
);
}
}
#endif
GtkTreeSelection
*
sel
;
GtkTreePath
*
path
;
...
...
@@ -1265,7 +1273,7 @@ xfpm_settings_new(XfconfChannel *channel,
gtk_box_pack_start
(
GTK_BOX
(
allbox
),
frame
,
TRUE
,
TRUE
,
SPACING
);
view
=
xfpm_settings_tree_view
(
is_laptop
,
ups_found
,
govs
);
view
=
xfpm_settings_tree_view
(
is_laptop
,
ups_found
,
govs
,
lcd
);
#ifndef HAVE_DPMS
if
(
is_laptop
||
ups_found
||
govs
)
...
...
@@ -1301,17 +1309,11 @@ xfpm_settings_new(XfconfChannel *channel,
gtk_notebook_append_page
(
GTK_NOTEBOOK
(
nt
),
box
,
NULL
);
}
/// Dpms
settings &
& LCD brightness settings
DPMS existence is checked above
#ifdef HAVE_DPMS
/// Dpms & LCD brightness settings
box
=
xfpm_settings_monitor
(
channel
,
is_laptop
,
dpms_capable
,
lcd
,
ups
);
gtk_notebook_append_page
(
GTK_NOTEBOOK
(
nt
),
box
,
NULL
);
#else
if
(
lcd
)
{
box
=
xfpm_settings_monitor
(
channel
,
is_laptop
,
dpms_capable
,
lcd
,
ups
);
gtk_notebook_append_page
(
GTK_NOTEBOOK
(
nt
),
box
,
NULL
);
}
#endif
GtkWidget
*
plug
;
if
(
socket_id
!=
0
)
...
...
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