Commit graph

79 commits

Author SHA1 Message Date
o9000
a6da0186e0 Cache pixmaps for mouse effects to improve performance 2016-01-01 04:57:08 +01:00
o9000
737150d7e9 Work better with empty config files 2015-12-27 15:39:39 +01:00
o9000
3790723483 Code cleanup 2015-12-13 11:39:12 +01:00
o9000
ea236e94a0 Clock: increase default font slightly 2015-12-13 10:48:06 +01:00
o9000
9a85f7f2c5 Use default desktop font (Gtk/FontName from XSettings) when the font is not specified in the config file 2015-12-12 15:14:42 +01:00
o9000
17f94205b4 Execplugin: add pango markup option 2015-12-05 11:42:07 +01:00
o9000
4a6937826c Cleanup indentation with clang-format and changed a few variable names 2015-11-20 23:28:37 +01:00
o9000
c0e62e2e79 Cleanup: area.h 2015-11-18 21:57:10 +01:00
o9000
732b9d3910 Mouse pressed effect + some fixes for mouse over 2015-11-04 12:19:23 +01:00
o9000
294fdee57f Mouse over effects 2015-11-04 01:32:13 +01:00
o9000
985c557dcd Refactored text size computation 2015-10-18 16:51:08 +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
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
berkley4
e84d963ab6 Allow middle click & up/down mousewheel on the clock
The bulk of this commit originally came from David B. Cortarello's
patch (see here - https://gitlab.com/o9000/tint2/issues/430), with me
adding the up/down mousewheel elements.

Under Openbox the middle-click is normally used to display the Openbox
menu and the mousewheel to switch desktop. So I needed to modify tint.c
in order to prevent openbox intercepting the new actions.

This commit creates the following new configuration settings :-

clock_mclick_command
clock_uwheel_command
clock_dwheel_command
2015-07-13 04:10:45 +01:00
o9000
b4f15db397 Use font shadows for all elements except tooltips
git-svn-id: http://tint2.googlecode.com/svn/trunk@766 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2015-04-18 13:22:07 +00:00
o9000
66cae4bb7c Fix dangling pointers causing erratic timer behaviour (affects taskbar with spacing); use calloc instead of malloc for safer initializations
git-svn-id: http://tint2.googlecode.com/svn/trunk@758 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2015-04-17 20:17:25 +00:00
o9000
af003d0e19 Memory management review: match char-malloc/strdup-free, gchar-g_str*/g_free; set pointers to null after free; initialize fonts/backgrounds correctly when missing from config
git-svn-id: http://tint2.googlecode.com/svn/trunk@748 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2015-04-11 09:51:10 +00:00
o9000
3f42584fbd Fix issue 401: Seconds not updating in second line of clock
git-svn-id: http://tint2.googlecode.com/svn/trunk@683 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2015-02-04 22:09:20 +00:00
o9000
37ee594f6a Fix segfault when the clock has no background in config
git-svn-id: http://tint2.googlecode.com/svn/trunk@625 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2011-02-20 22:32:35 +00:00
Andreas.Fink85
10f50cf29b *fix* issue 319
git-svn-id: http://tint2.googlecode.com/svn/trunk@621 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2011-01-08 13:56:26 +00:00
Andreas.Fink85
48d428b677 *fix* make clock buffers a bit larger (1Kb ram is not really much buffer, but users which have a long clock_tooltip or clock_time1 or clock_time2 are
happy)



git-svn-id: http://tint2.googlecode.com/svn/trunk@606 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-11-23 15:11:57 +00:00
thilor77
7c8a31db72 update my contribution to the company
git-svn-id: http://tint2.googlecode.com/svn/trunk@585 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-11-02 11:40:50 +00:00
Andreas.Fink85
eae7223ddf *fix* valgrind invalid read/write and memleaks
git-svn-id: http://tint2.googlecode.com/svn/trunk@572 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-10-08 21:45:14 +00:00
thilor77
e68c361951 cleanup : generic resize function (in area.c)
git-svn-id: http://tint2.googlecode.com/svn/trunk@561 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-09-22 22:01:37 +00:00
thilor77
b4fb372f52 panel_items : fixed hide/unhide of baterry and systray
git-svn-id: http://tint2.googlecode.com/svn/trunk@560 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-09-22 19:33:10 +00:00
thilor77
d2d2277bfe cleanup : Area posx/posy managed by layering engine (area.c)
git-svn-id: http://tint2.googlecode.com/svn/trunk@558 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-09-21 09:54:19 +00:00
thilor77
8f1709079e panel_items : fixed clock on vertical panel
git-svn-id: http://tint2.googlecode.com/svn/trunk@557 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-09-19 20:46:43 +00:00
thilor77
500981b052 panel_items : fixed some segfault.
git-svn-id: http://tint2.googlecode.com/svn/trunk@549 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-09-18 14:58:00 +00:00
thilor77
52eb843047 order of panel items : position of each object is update by layering engine (area)
git-svn-id: http://tint2.googlecode.com/svn/trunk@547 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-09-18 10:41:34 +00:00
thilor77
aabe6b11b9 add comment
git-svn-id: http://tint2.googlecode.com/svn/trunk@545 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-09-16 23:24:25 +00:00
thilor77
3eb1b736e3 fixed Issue 282
git-svn-id: http://tint2.googlecode.com/svn/trunk@526 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-08-08 14:06:15 +00:00
thilor77
7a2004c979 fixed memleak
git-svn-id: http://tint2.googlecode.com/svn/trunk@523 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-08-02 18:07:31 +00:00
Andreas.Fink85
5521275bef *fix* execute an external command by calling fork/execl and do not ignore SIGCHLD (maybe fixes issue 263)
git-svn-id: http://tint2.googlecode.com/svn/trunk@480 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-06-11 18:47:26 +00:00
thilor77
64530181d9 qutodetect composite manager and automaticaly switch real/fake transparency
git-svn-id: http://tint2.googlecode.com/svn/trunk@425 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-04-18 14:49:50 +00:00
thilor77
7ee42e8ca1 SIGUSR1 does now a full restat of tint2
git-svn-id: http://tint2.googlecode.com/svn/trunk@424 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-04-18 14:28:45 +00:00
thilor77
c298a39d00 moved initial values in function default_xxx
git-svn-id: http://tint2.googlecode.com/svn/trunk@423 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-04-18 12:07:36 +00:00
thilor77
3adb7e2080 cleanup default value on SIGUSR1
git-svn-id: http://tint2.googlecode.com/svn/trunk@421 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-04-16 18:50:03 +00:00
thilor77
8afbb566a2 fixed resize_clock() and snapshot
git-svn-id: http://tint2.googlecode.com/svn/trunk@405 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-03-27 16:51:12 +00:00
Andreas.Fink85
bf1dc33ca7 *add* drag'n'drop task reordering
*fix* autohide and tooltip after SIGUSR1
*fix* send low_battery_cmd only once
*fix* update clock if time difference > 60 sec (after hibernation or supsension)
*fix* changed transient window behaviour


git-svn-id: http://tint2.googlecode.com/svn/trunk@393 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-02-08 22:44:56 +00:00
thilor77
c50b931172 applied patch to synchronize clock by wim.speek@orange.nl
git-svn-id: http://tint2.googlecode.com/svn/trunk@392 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-02-03 12:05:16 +00:00
Andreas.Fink85
739af13714 *add* more task states (normal, active, iconified, urgent), with each an own background, font and asb
*fix* two memleaks
*fix* some code beautification



git-svn-id: http://tint2.googlecode.com/svn/trunk@327 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-01-09 00:11:01 +00:00
Andreas.Fink85
adb784a859 *add* autohide
*fix* issue 182 by using select instead of pselect


git-svn-id: http://tint2.googlecode.com/svn/trunk@321 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-01-05 20:38:49 +00:00
Andreas.Fink85
c65ad3628d *add* clock supports timezones
*add* first preparations for real transparency (tooltip works already, but panel does not. Therefore it is disabled in the source code)


git-svn-id: http://tint2.googlecode.com/svn/trunk@304 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2009-12-30 11:27:29 +00:00
Andreas.Fink85
3767eb58f1 *fix* use another timer implementation, coz *BSD does not support timerfd :(
git-svn-id: http://tint2.googlecode.com/svn/trunk@296 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2009-12-27 20:33:02 +00:00
Andreas.Fink85
88fa3b7544 *fix* unset sigmask only for child fork
git-svn-id: http://tint2.googlecode.com/svn/trunk@283 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2009-12-07 14:10:14 +00:00
Andreas.Fink85
db83997eae *add* clock tooltip finished, see issue 115
*fix* reset sigmask before forking



git-svn-id: http://tint2.googlecode.com/svn/trunk@272 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2009-11-16 17:54:46 +00:00
Andreas.Fink85
7fa58c0552 *change* make tooltip more generous, and preparation for setting a tooltip on the clock
git-svn-id: http://tint2.googlecode.com/svn/trunk@271 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2009-11-16 17:17:53 +00:00
Andreas.Fink85
806451955b *add* changed everything to kernel timer for easier integration with new timer
*todo* adapt tooltip also to the timer syntax
*fix* memory leak



git-svn-id: http://tint2.googlecode.com/svn/trunk@266 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2009-11-15 16:55:50 +00:00
lorthiois@bbsoft.fr
c763cf7172 fixed config reload SIGUSR1. added systray = 1 parameter to enable systray
git-svn-id: http://tint2.googlecode.com/svn/trunk@242 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2009-10-30 17:18:44 +00:00