Commit graph

929 commits

Author SHA1 Message Date
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
f954be3e87 Updated changelog 2015-08-06 23:14:57 +02:00
o9000
cbd52d1a48 Update IDE file list 2015-08-06 22:39:44 +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
76b69b86dc Update author list (Sebastian's info) 2015-08-05 23:05:52 +02:00
o9000
a8e1c9d3aa tint2conf: Fix read of panel_monitor (issue #520) 2015-08-05 22:55:16 +02:00
o9000
3dbd13aa77 Merge branch 'systray-already-running-message-fix' into 'master'
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.

See merge request !7
2015-08-05 08:34:52 +00: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
84c58ce9af Updated readme for 0.12.1 2015-08-01 21:54:28 +00:00
o9000
184703998b Updated changelog 2015-08-01 23:50:42 +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
c1d0a42bed Update changelog 2015-08-01 08:30:00 +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
3805adc9f3 Updated readme 2015-07-30 23:10:07 +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
a4996c9d3e Updated readme 2015-07-26 10:31:20 +00: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