Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:zhy20120210:failed_1
gnome-power-manager
gnome-power-manager-appear-confident.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gnome-power-manager-appear-confident.patch of Package gnome-power-manager
diff --git a/src/gpm-engine.c b/src/gpm-engine.c index 0fe0e49..73ec156 100644 --- a/src/gpm-engine.c +++ b/src/gpm-engine.c @@ -263,7 +263,6 @@ gpm_engine_get_summary (GpmEngine *engine) GString *tooltip = NULL; GpmCellUnit *unit; GpmEngineCollection *collection; - guint accuracy; gboolean on_ac; gchar *part; @@ -296,27 +295,6 @@ gpm_engine_get_summary (GpmEngine *engine) } g_free (part); - /* if we have limited accuracy, add this to the tooltip */ - unit = gpm_cell_array_get_unit (collection->primary); - accuracy = gpm_profile_get_accuracy_average (engine->priv->profile, - unit->is_discharging) * 100; - - if (unit->is_present) { - if (accuracy == 0) { - if (unit->is_discharging) { - tooltip = g_string_append (tooltip, _("Battery discharge time is currently unknown\n")); - } else { - tooltip = g_string_append (tooltip, _("Battery charge time is currently unknown\n")); - } - } else if (accuracy < GPM_PROFILE_GOOD_TRUST) { - if (unit->is_discharging) { - tooltip = g_string_append (tooltip, _("Battery discharge time is estimated\n")); - } else { - tooltip = g_string_append (tooltip, _("Battery charge time is estimated\n")); - } - } - } - part = gpm_cell_array_get_description (collection->ups); if (part != NULL) { tooltip = g_string_append (tooltip, part);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor