Commit 8165fc6
authored
csd-power-manager.c: Sent property updates when the percentage (#438)
changes, not just an icon.
Commit c2c7609 removed the Tooltip property from csd-power. We
weren't making use of that property anywhere in Cinnamon, but it
was doing the work of triggering updates there whenever the battery
percentage changed, keeping the applet up-to-date in between actual
icon changes.
There's no point in reverting everything - most is string handling
that we still don't need. Instead, implement a simple percentage
monitor and dbus Property to trigger updates for clients.
Fixes linuxmint/cinnamon#13324.1 parent 7e9a980 commit 8165fc6
2 files changed
Lines changed: 54 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
| |||
379 | 380 | | |
380 | 381 | | |
381 | 382 | | |
382 | | - | |
| 383 | + | |
| 384 | + | |
383 | 385 | | |
384 | 386 | | |
385 | 387 | | |
| |||
401 | 403 | | |
402 | 404 | | |
403 | 405 | | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
404 | 412 | | |
405 | 413 | | |
406 | 414 | | |
| |||
685 | 693 | | |
686 | 694 | | |
687 | 695 | | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
688 | 734 | | |
689 | 735 | | |
690 | 736 | | |
691 | 737 | | |
| 738 | + | |
692 | 739 | | |
693 | 740 | | |
| 741 | + | |
694 | 742 | | |
695 | | - | |
696 | | - | |
697 | | - | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
698 | 746 | | |
699 | 747 | | |
700 | 748 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
0 commit comments