~ubuntu-branches/ubuntu/vivid/mate-power-manager/vivid

« back to all changes in this revision

Viewing changes to src/gpm-upower.c

  • Committer: Package Import Robot
  • Author(s): Mike Gabriel
  • Date: 2015-03-05 05:42:14 UTC
  • mfrom: (7.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20150305054214-n4wbp1xv18om1ri2
Tags: 1.8.1+dfsg1-4
* debian/patches:
  + Add 0002_handle-UP-DEVICE-STATE-UNKNOWN.patch. Handle
    UP_DEVICE_STATE_UNKNOWN device states, avoid g_assert_not_reached().
    Fix segfaulting of mate-power-statistics in certain situations.
    (Closes: #779719). See also #774546.

Show diffs side-by-side

added added

removed removed

Lines of Context:
652
652
                /* TRANSLATORS: battery state */
653
653
                state_string = _("Waiting to discharge");
654
654
                break;
 
655
        case UP_DEVICE_STATE_UNKNOWN:
 
656
                /* TRANSLATORS: battery state */
 
657
                state_string = _("Unknown state");
 
658
                break;
655
659
        default:
656
660
                g_assert_not_reached ();
657
661
                break;