[Xfce4-commits] [xfce/xfce4-power-manager] 03/05: Rename variable system_laptop to has_battery for consistency
noreply at xfce.org
noreply at xfce.org
Mon Jun 16 17:42:27 CEST 2014
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository xfce/xfce4-power-manager.
commit bafe6a100fe21e133c951015f93e08d55df10e0d
Author: Harald Judt <h.judt at gmx.at>
Date: Mon Jun 16 12:35:29 2014 +0200
Rename variable system_laptop to has_battery for consistency
Signed-off-by: Eric Koegel <eric.koegel at gmail.com>
---
settings/xfpm-settings.c | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/settings/xfpm-settings.c b/settings/xfpm-settings.c
index d2027af..835c810 100644
--- a/settings/xfpm-settings.c
+++ b/settings/xfpm-settings.c
@@ -1329,7 +1329,7 @@ xfpm_settings_general (XfconfChannel *channel, gboolean auth_suspend,
static void
xfpm_settings_advanced (XfconfChannel *channel, gboolean auth_suspend,
gboolean auth_hibernate, gboolean can_suspend,
- gboolean can_hibernate, gboolean system_laptop)
+ gboolean can_hibernate, gboolean has_battery)
{
guint val;
gchar *str;
@@ -1437,7 +1437,7 @@ xfpm_settings_advanced (XfconfChannel *channel, gboolean auth_suspend,
* Critical battery level
*/
critical_level = GTK_WIDGET (gtk_builder_get_object (xml, "critical-spin"));
- if ( system_laptop )
+ if ( has_battery )
{
gtk_widget_set_tooltip_text (critical_level,
_("When all the power sources of the computer reach this charge level"));
@@ -2004,7 +2004,7 @@ GtkWidget *
xfpm_settings_dialog_new (XfconfChannel *channel, gboolean auth_suspend,
gboolean auth_hibernate, gboolean can_suspend,
gboolean can_hibernate, gboolean can_shutdown,
- gboolean system_laptop, gboolean has_lcd_brightness,
+ gboolean has_battery, gboolean has_lcd_brightness,
gboolean has_lid, gboolean has_sleep_button,
gboolean has_hibernate_button, gboolean has_power_button,
gboolean devkit_disk, gboolean can_spin_down,
@@ -2020,9 +2020,10 @@ xfpm_settings_dialog_new (XfconfChannel *channel, gboolean auth_suspend,
GtkCellRenderer *renderer;
GError *error = NULL;
- XFPM_DEBUG ("system_laptop=%s auth_hibernate=%s auth_suspend=%s can_shutdown=%s can_suspend=%s can_hibernate=%s has_lcd_brightness=%s has_lid=%s "\
- "has_sleep_button=%s has_hibernate_button=%s has_power_button=%s can_spin_down=%s",
- xfpm_bool_to_string (system_laptop), xfpm_bool_to_string (auth_hibernate),
+ XFPM_DEBUG ("auth_hibernate=%s auth_suspend=%s can_shutdown=%s can_suspend=%s can_hibernate=%s " \
+ "has_battery=%s has_lcd_brightness=%s has_lid=%s has_sleep_button=%s " \
+ "has_hibernate_button=%s has_power_button=%s can_spin_down=%s",
+ xfpm_bool_to_string (has_battery), xfpm_bool_to_string (auth_hibernate),
xfpm_bool_to_string (can_shutdown), xfpm_bool_to_string (auth_suspend),
xfpm_bool_to_string (can_suspend), xfpm_bool_to_string (can_hibernate),
xfpm_bool_to_string (has_lcd_brightness), xfpm_bool_to_string (has_lid),
@@ -2108,7 +2109,7 @@ xfpm_settings_dialog_new (XfconfChannel *channel, gboolean auth_suspend,
devkit_disk,
can_spin_down);
- if ( system_laptop )
+ if ( has_battery )
xfpm_settings_on_battery (channel,
auth_suspend,
auth_hibernate,
@@ -2136,7 +2137,7 @@ xfpm_settings_dialog_new (XfconfChannel *channel, gboolean auth_suspend,
xfpm_settings_general (channel, auth_suspend, auth_hibernate, can_suspend, can_hibernate, can_shutdown,
has_sleep_button, has_hibernate_button, has_power_button );
- xfpm_settings_advanced (channel, auth_suspend, auth_hibernate, can_suspend, can_hibernate, system_laptop);
+ xfpm_settings_advanced (channel, auth_suspend, auth_hibernate, can_suspend, can_hibernate, has_battery);
if ( id != 0 )
{
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list