o9000
df9df99c23
Fix compile error with cmake -DENABLE_RSVG=OFF
2015-11-05 01:15:59 +01:00
o9000
7d972e53d7
Mouse effects: updated tint2conf
2015-11-05 01:13:21 +01:00
o9000
6061b76331
Mouse effects: updated tint2conf
2015-11-05 00:08:23 +01:00
o9000
0900c088ee
Mouse effects: fixes, changed defaults, more config options
2015-11-04 23:14:11 +01:00
o9000
68d3799c47
Mouse effects: tint icons
2015-11-04 13:02:12 +01:00
o9000
1b554ebc1e
Fix segfault
2015-11-04 12:25:49 +01:00
o9000
732b9d3910
Mouse pressed effect + some fixes for mouse over
2015-11-04 12:19:23 +01:00
o9000
34b341767c
Task: disable pixmap caching (temporary change until we make it work with mouse effects)
2015-11-04 11:58:11 +01:00
o9000
070eb7ba4d
Revert "Area: do not destroy pixmap when not necessary"
...
This reverts commit f2922d7dbd
.
2015-11-04 03:07:46 +01:00
o9000
57c35549f3
Area: refactor list -> children
2015-11-04 02:37:10 +01:00
o9000
f2922d7dbd
Area: do not destroy pixmap when not necessary
2015-11-04 02:36:51 +01:00
o9000
9e2fbec797
Launcher icon background
2015-11-04 02:05:41 +01:00
o9000
294fdee57f
Mouse over effects
2015-11-04 01:32:13 +01:00
o9000
fe06ff5075
tint2conf: Updated French PO (added corrections from Mélodie)
2015-11-01 14:58:59 +01:00
o9000
73ed55f288
tint2conf: Updated French PO (removed fuzzy flag; review still needed)
2015-11-01 13:56:11 +01:00
o9000
2ff9ee9eba
tint2conf: Updated French PO (review needed)
2015-11-01 13:38:43 +01:00
o9000
3b434c0ef5
tint2conf: Updated POT and PO files (translation update needed)
2015-11-01 13:09:33 +01:00
o9000
6d59e55d8d
tint2conf: Call setlocale with no locale to use system default instead of C
2015-11-01 12:53:48 +01:00
o9000
d2636c8c57
Updated French translation (thanks to Melodie and her team)
2015-11-01 12:18:46 +01:00
o9000
b52f193804
Fix lost settings on battery plug/unplug
2015-10-18 17:28:58 +02:00
o9000
23ce5df057
Refactored text size computation (missed a change for the battery)
2015-10-18 17:04:21 +02:00
o9000
da06691292
tint2conf: Changed plugin order
2015-10-18 16:56:10 +02:00
o9000
8b6aad3a41
Refactored svg image loading
2015-10-18 16:53:27 +02:00
o9000
985c557dcd
Refactored text size computation
2015-10-18 16:51:08 +02:00
o9000
2299132cd3
tint2conf: Add background labels
2015-09-23 23:56:38 +02:00
o9000
005e5a49c0
Battery: minor code style change
2015-09-12 12:23:50 +02:00
o9000
85b3b8a749
Battery: fix comment in estimate_power_usage
2015-09-12 12:22:32 +02:00
o9000
42d1ba2b20
Battery: prevent division by zero
2015-09-12 12:21:31 +02:00
o9000
b887d50409
Merge branch 'sre/support-missing-power-usage-information'
2015-09-12 12:17:25 +02:00
o9000
66b38cc7d6
Initialize ac_connected_cmd and ac_disconnected_cmd
2015-09-12 11:18:21 +02:00
Sebastian Reichel
89f26595b6
support missing power usage data
...
Some notebooks do not provide power usage data. This code tries
to estimate the current power usage by measuring the battery level
difference in a specific time interval.
2015-09-12 04:34:32 +02:00
Sebastian Reichel
3d39da9330
correctly free battery linked list
2015-09-12 04:32:45 +02:00
Sebastian Reichel
eb86d5ac00
free ac_connected_cmd and ac_disconnected_cmd on cleanup
2015-09-12 04:31:12 +02:00
o9000
5b01670a22
Fix lost font setting for desktop name
2015-09-12 03:08:25 +02:00
o9000
00a1803348
if( -> if (
2015-08-08 08:51:44 +02:00
o9000
03dd8b8483
uevent: Use strchr here
2015-08-08 08:47:32 +02:00
Sebastian Reichel
9e85b6dcfe
Battery: Avoid executing ac_connected cmd on startup
...
Previously ac_connected_cmd was executed during tint2 startup (if
AC is connected during startup).
2015-08-08 06:39:45 +02:00
Sebastian Reichel
0d0b1249c7
Battery: Handle Linux kernel events
...
The Kernel sends notifications for AC (un)plug and some
other important power supply events, so that we can
instantly update the widget. Apart from that it sends
notifications for any added or removed power supplies,
so that the battery support can be reinitialized (useful
on systems with removable batteries).
2015-08-08 06:31:01 +02:00
Sebastian Reichel
46a6d2c2ad
Add Linux kernel event handling code
...
This is a simple handler for uevents send by the Linux
kernel.
2015-08-08 06:29:54 +02:00
o9000
00b88c2725
battery: Updates for OpenBSD
2015-08-07 08:54:15 +02:00
o9000
10b006ffb2
battery: Updates for OpenBSD
2015-08-07 08:36:02 +02:00
o9000
28272621b0
battery: Capitalize AC state in tooltips
2015-08-07 08:22:54 +02:00
o9000
61d786cf4f
battery: Tooltips for FreeBSD (fix format string)
2015-08-07 08:20:34 +02:00
o9000
9d2e62f724
battery: Tooltips for FreeBSD (fix typo)
2015-08-07 08:19:48 +02:00
o9000
6e77b59ef8
battery: Tooltips for FreeBSD
2015-08-07 08:18:26 +02:00
o9000
3a733d7353
battery: Update AC status on FreeBSD
2015-08-07 08:08:53 +02:00
o9000
8df9ed5977
Update type for ac_connected variables
2015-08-07 08:07:51 +02:00
o9000
cf748d6d41
Revert "Remove static clock tooltip buffer" (g_date_time_format uses format strings slightly different from strftime)
...
This reverts commit 441c420773
.
2015-08-07 07:54:13 +02:00
Sebastian Reichel
169278c9d8
tint2conf: add support for ac_connected_cmd and ac_disconnected_cmd
2015-08-07 05:33:33 +02:00
Sebastian Reichel
db490247e0
Battery: support for ac connection event cmd
...
This add two new config options "ac_connected_cmd" and
"ac_disconnected_cmd". These commands are executed when
AC (mains supply) is connected or disconnected.
2015-08-07 05:22:09 +02:00
Sebastian Reichel
3c45cf29c7
Battery: Split operating system specific code
...
This removes all operating system specific code from the main
battery file into their own source files. CMake will add the
correct implementation automatically.
2015-08-07 05:08:44 +02:00
Sebastian Reichel
66acd8ed38
Add battery Mains/AC support for Linux
...
Add initial support for mains/ac adapters. This adds the
state only to the tooltip, but the code has been prepared
to update AC state together with normal battery updates,
so that it's possible to forward the state to the normal
panel area or trigger something on AC (dis)connection.
2015-08-07 04:35:33 +02:00
Sebastian Reichel
d1c22762c4
battery: move percentage calculation to linux code
...
Only Linux provides detailed energy statistics. The BSDs directly
provide percentage values. This change makes it easier to split
out the BSD code and reduces code overhead on BSD systems.
2015-08-07 04:35:24 +02:00
Sebastian Reichel
441c420773
Remove static clock tooltip buffer
...
Use GLib's GDateTime to generate the tooltip, so that a
correctly sized string is automatically created.
2015-08-07 02:32:18 +02:00
Sebastian Reichel
edad9bb7f5
Fix memory leak for battery tooltips
...
Instead of returning a const string, that is fed into strdup, tooltip
functions are now supposed to return allocated strings. This fixes a
memory leak in the battery tooltip.
This is used instead of simply freeing the memory in the battery
tooltip function, since it also avoids a uselesss strdup().
2015-08-07 02:09:53 +02:00
o9000
aa47642161
Merge branch 'multi-battery-support' into 'master'
...
Multi battery support
Hi ,
I have a couple of patches for the battery widget
making it actually useful on my ThinkPad X250.
-- Sebastian
See merge request !6
2015-08-06 20:38:29 +00:00
Sebastian Reichel
57c38c462c
Add support for battery tooltip option in tint2conf
2015-08-06 22:01:02 +02:00
Sebastian Reichel
995ae3c72b
fix battery option parsing
...
Fix copy&paste mistake, battery should be enabled
for obsolete "battery" option instead of obsolete
"systray" option.
2015-08-06 22:01:02 +02:00
Sebastian Reichel
9df55d5ef7
Update copyright info in battery files
2015-08-06 22:01:02 +02:00
Sebastian Reichel
ffd659208a
Add battery tooltip support
...
This adds a new config option 'battery_tooltip' (enabled
by default), which can be used to enable a tooltip for
the battery widget providing details for all installed
batteries.
2015-08-06 22:01:02 +02:00
o9000
a8e1c9d3aa
tint2conf: Fix read of panel_monitor (issue #520 )
2015-08-05 22:55:16 +02:00
Sebastian Reichel
291be57cde
reset color after systray existing message
...
Currently all messages following the "another systray is running"
message are also printed in red. Fix this by reseting the color
at the end of the message.
2015-08-05 02:42:15 +02:00
Sebastian Reichel
ae375ae526
Split out Linux battery implementation and support multiple batteries
...
Some notebooks, like the ThinkPad X240 and X250 have two batteries
installed. So far only one of the batteries have been checked by
the tint2 widget making it more or less useless on those systems.
After this patch tint2 will aggregate the data from all batteries
instead.
2015-08-05 02:07:31 +02:00
o9000
84f9f6d0cd
Systray: do not move empty icons to the side, as it breaks GTK2 StatusIcon blinking (issue #515 )
2015-08-03 19:40:35 +02:00
o9000
ed24d0bd4c
Fix command line argument processing (issue #516 )
2015-08-03 18:34:12 +02:00
o9000
8eca71ac95
Remove parameter from tooltip_trigger_hide() (issue #516 )
2015-08-03 18:20:16 +02:00
o9000
e345c0ddcd
tint2conf: Add more mouse events for clock and battery (issue #505 )
2015-08-01 09:31:11 +02:00
o9000
c874e76343
Merge branch 'moreclicks' into 'master'
...
Moreclicks
The two commits in this merge request would allow the user to set up as many as eight extra custom actions via tint2rc.
I've been running these changes (minus the up/down wheel actions) for many months without any obvious issues, mainly to adjust laptop screen brightness via a couple of scripts.
I've just tested the wheel actions and they appeared to work fine. The clock commit should solve issue #505 .
I have merely augmented the work of two other people, and appropriate credits/references are indicated in the individual commit messages.
See merge request !5
2015-08-01 07:02:51 +00:00
o9000
687f5f2a1b
Systray: use correct pointer type in xembed detection (note: dead code)
2015-08-01 08:45:20 +02:00
o9000
c7aa70f078
Systray: remove SubstructureNotifyMask from XSelectInput
2015-08-01 08:40:56 +02:00
o9000
690fe3f4d8
Systray: remove debugging messages
2015-08-01 08:39:51 +02:00
o9000
e5cd73f4a7
Add debugging function for showing monitor geometry
2015-08-01 08:25:36 +02:00
o9000
7ffc220891
Taskbar: Use consistent behavior when showing/hiding sticky (all desktop) windows
2015-08-01 08:22:08 +02:00
o9000
2799fe9346
Taskbar: better task monitor detection (issue #511 )
2015-08-01 00:21:25 +02:00
o9000
e2023b7172
systray: Revert break embedding into 2 steps (breaks transparency for Qt icons)
2015-07-31 10:04:41 +02:00
o9000
9224971407
systray: Proper resize redirect handling
2015-07-31 09:58:17 +02:00
o9000
d492f80468
systray: Redirect resize events
2015-07-31 09:31:03 +02:00
o9000
78bc330448
systray: Break embedding into 2 steps
2015-07-30 23:54:46 +02:00
o9000
4e3989f9f5
Revert "taskbar: Add logging for window_get_monitor()"
...
This reverts commit 7162c5dea1
.
2015-07-30 22:56:01 +02:00
o9000
9624b5d558
Revert "taskbar: Add logging for event_configure_notify()"
...
This reverts commit b99c5c204b
.
2015-07-30 22:55:47 +02:00
o9000
754d9187df
systray: Revert change that removed XSyncs
2015-07-27 09:47:00 +02:00
o9000
b99c5c204b
taskbar: Add logging for event_configure_notify()
2015-07-26 12:08:59 +02:00
o9000
7162c5dea1
taskbar: Add logging for window_get_monitor()
2015-07-26 11:51:39 +02:00
o9000
e3939a56e1
systray: Set _NET_SYSTEM_TRAY_ICON_SIZE
2015-07-26 11:23:27 +02:00
o9000
ceafe9b281
config: Add missing #if
2015-07-23 23:29:02 +02:00
o9000
263d1ab15f
systray: Remove unused variable
2015-07-23 22:08:56 +02:00
o9000
e76202b355
Fix systray rendering when compositor off
2015-07-23 20:38:33 +02:00
o9000
f68eabcf35
config: Prevent segfault if panel_items appears late in the config file
2015-07-23 19:56:34 +02:00
o9000
e218b3fa96
systray: Prevent segfault if systray disabled
2015-07-23 19:38:26 +02:00
o9000
50e21b4077
systray: Trying some variations
2015-07-19 18:06:45 +02:00
o9000
b6a1a1c0f6
systray: Remove unneeded resize
2015-07-19 17:12:41 +02:00
o9000
15e12142ca
Minor improvements
2015-07-19 17:10:53 +02:00
o9000
b8c1c29df2
systray: Throttle resize events for misbehaving applications
2015-07-19 16:49:05 +02:00
o9000
4a1880ead0
Move things around in the systray code
2015-07-19 16:12:02 +02:00
o9000
57b878d5e4
Remove debug line
2015-07-16 22:33:13 +02:00
o9000
46aab61bf6
Revert "systray: Process XEmbed events according to spec"
...
This reverts commit 227dc8e48a
.
2015-07-16 22:25:18 +02:00
o9000
227dc8e48a
systray: Process XEmbed events according to spec
2015-07-16 21:08:48 +02:00
o9000
68c3205b53
systray: Handle UnmapNotify correctly
2015-07-16 21:08:48 +02:00
o9000
61f0a4ec85
systray: remove icon when reparented away from us
2015-07-16 21:08:47 +02:00
o9000
c606a1a35a
systray: Separate reparenting from embedding
2015-07-16 21:08:47 +02:00