Commit Graph

52 Commits

Author SHA1 Message Date
Sanel Zukan
2d028fe4a6 Let panel taskbar tries to fetch icons of desired size, if possible. Also squashed a small memory leak in keyboard applet. 2012-08-24 14:15:04 +00:00
Sanel Zukan
b4ad2fb11b ifdef-ed some FLTK 1.3.0 specific code. 2012-08-23 02:29:27 +00:00
Sanel Zukan
89ec43af74 Added guards in case autoupdate feature is disabled. 2012-08-06 14:57:20 +00:00
Sanel Zukan
1dde9f92da Menu reload support and clean of some memory leaks.
Menu reload is using DirWatch to monitor application menu folders for changes. With this, any change on some content will trigger
menu update. Update is trying to be safe as possible: when menu is open, a backup menu will be constructed and replaced as soon as menu
was closed; when is closed, it will be directly replaced.

This still can include races, but I'm hoping they will not occur.

Related to memory leaks: on couple of places in cpu applet, delete was wronly called instead delete[]. Also, when ede-panel exits,
AppletManager would not clean loaded apples. Strange. So now explicit clear was added on exit.
2012-08-06 14:52:09 +00:00
Sanel Zukan
a45609e945 Added copyright/legal info. Cleared some deprecation warnings. 2012-08-06 12:00:25 +00:00
Sanel Zukan
59a16eff0e Fixing panel placement when screen size was changed. Updating main menu to use MenuTooltip code.
When screen dimensions are shrinked, panel will be moved at the correct location but will not be resized correctly. Also,
when screen dimensions are changed again, increasing sizes, panel would not catch that. Here, 'the hack' is to track
root window dimension changes and react on that, since relaying on _NET_WORKAREA is not always good; struts dimentions affects workarea size.

Main menu now has tooltips, which is Comment value from .desktop files. Also, since XdgMenuReader directly plays with MenuItem,
MenuItem::init_extensions() is used to reset uncommon values.
2012-06-07 09:32:27 +00:00
Sanel Zukan
39ffa8406b Code cleanup.
Removing usage of EDE_PANEL_APPLET_CLASS since there is no much usage of it. Also, marked all applet widgets as EDE_PANEL_WIDGET_TYPE so panel knows it is widget.

Added license info in some code, but whole ede2 tree needs to be revised for that.
2012-05-30 10:23:27 +00:00
Sanel Zukan
eb175fa89f Moving all class declarations to EDE_PANEL_APPLET_CLASS macro.
This change should make base applet code easier to modify without modifying applets itself. This is also
a starting point for implementation of better routing netwm messages to applets without adding specific listener
to each applet.
2012-05-28 10:57:50 +00:00
Sanel Zukan
8bc8e23304 Redone animation code.
Due large number of XFlush-es, on some OS-eses with bad graphic driver (in my case FreeBSD on VirtualBox)
animation considerably slows down, making animation quit OS/driver specific. Using FLTK timer code, animation should
be agnostic as possible.
2012-05-16 11:30:41 +00:00
Sanel Zukan
dd496f4780 Make dialog-like windows centered. Work on implementing missing ede-desktop functions 2012-05-07 08:53:13 +00:00
Sanel Zukan
8aa9d550b2 Prevent some memory leaks 2012-04-19 12:49:30 +00:00
Sanel Zukan
6b78cb3b0a Made it static 2012-04-19 10:17:26 +00:00
Sanel Zukan
6a06898050 How did I manage to miss this!?@ 2012-04-19 10:12:49 +00:00
Sanel Zukan
403f4be39d Correctly set tray window sizes so tray app can draw icon(s) on correct place. 2012-04-19 10:08:41 +00:00
Sanel Zukan
7d884242bd Do not run timeout callbacks when panel is hidden. This will prevent reading cpu or memory status when their widgets are not visible. 2012-04-11 16:15:01 +00:00
Sanel Zukan
9d38486f61 Small change and attempt to fix workspace switch bug, but without success. Next time... 2012-04-03 09:05:34 +00:00
Sanel Zukan
765cb4fc2c Explicit conversion must be on freebsd gcc version 2011-10-29 16:10:41 +00:00
Sanel Zukan
9a48273fd4 Fixed issue with drawing label 2011-10-28 09:12:49 +00:00
Sanel Zukan
9f349dae04 Allow explicit building of local applets. Shrinked buf size for numbers 2011-10-27 15:11:11 +00:00
Sanel Zukan
c97c675153 Do not tray windows that are not valid 2011-10-27 15:00:15 +00:00
Sanel Zukan
d9e4715752 Setup visual atom for app icons 2011-10-27 13:15:25 +00:00
Sanel Zukan
513ffe504a Fixing way how tray icon window is drawn. This required changing a bit of code here 2011-10-27 12:02:07 +00:00
Sanel Zukan
a23957a49e Removing debug code. 2011-10-26 16:19:21 +00:00
Sanel Zukan
dc27ca1364 Unused code 2011-10-26 16:06:25 +00:00
Sanel Zukan
706ef69bfa Importing systray applet. Not completed yet... 2011-10-26 16:04:37 +00:00
Sanel Zukan
f3ff9ade2d Use for_each 2011-10-07 14:19:04 +00:00
Sanel Zukan
a486d1b3bf Drawing code 2011-09-30 11:41:22 +00:00
Sanel Zukan
b2408f4957 Initial import of memory monitor applet 2011-09-30 09:47:20 +00:00
Sanel Zukan
eebda8a375 Update icon on demand 2010-03-09 23:38:57 +00:00
Sanel Zukan
bd5dbb7ed9 Application icon support in taskbar button 2010-03-08 22:44:32 +00:00
Sanel Zukan
8711d6c593 Added weekday name in tooltip 2010-03-08 00:03:44 +00:00
Sanel Zukan
617bebaab2 Some tooltip text beautification 2010-03-07 23:14:54 +00:00
Sanel Zukan
83a14d9a27 Let tooltip shows a date 2010-03-07 21:51:06 +00:00
Sanel Zukan
6de400ed8b Use flat box by default 2010-03-07 21:33:55 +00:00
Sanel Zukan
b057ef45a1 Do not display transient windows 2010-01-06 14:45:56 +00:00
Sanel Zukan
66da6a79b6 Do not compile and install demo applet 2009-12-17 15:19:05 +00:00
Sanel Zukan
bbbb00fdca Use wm specific code from edelib. 2009-12-17 15:16:35 +00:00
Sanel Zukan
037196c9be Reduced warnings on gcc 4.4.1.
Let panel applet use GLOBALFLAGS.
Check for XKBrules from XKB extension and conditionally compile code using it.
2009-11-20 17:08:29 +00:00
Sanel Zukan
cc9725582c Call ede-keyboard-conf when clicked on applet.
Let ede-keyboard-conf uses setxkbmap for setting changes.
ede-desktop foreign callback addopted for latest modification in edelib.
ede-conf will display keyboard configuration.
2009-11-13 11:53:02 +00:00
Sanel Zukan
aa89c86111 Use X path if given 2009-11-12 13:15:27 +00:00
Sanel Zukan
c4378d8738 Importing adapted CPU monitor from old eworkpanel as applet 2009-11-05 15:18:51 +00:00
Sanel Zukan
75aca1e984 Added -fPIC flag for start-menu applet code, that prevented linkage.
Common menu code will be compiled now once in separate library.
2009-10-15 14:51:15 +00:00
Sanel Zukan
0d49f7bf87 Importing applet for displaying currently used keyboard layout 2009-10-12 11:25:57 +00:00
Sanel Zukan
9a3b95faf4 Update callback data when menu is going to be clicked 2009-10-08 13:27:36 +00:00
Sanel Zukan
aec637be5c Run commands from the menu items 2009-10-06 14:30:48 +00:00
Sanel Zukan
125fedc355 Expand Exec codes and quote Desktop Entry Specification required characters 2009-10-06 14:22:51 +00:00
Sanel Zukan
44d18dc433 Check OnlyShowIn and NotShowIn values if they are given 2009-10-06 12:04:44 +00:00
Sanel Zukan
419a80a732 Removed unused testing files 2009-10-06 11:39:16 +00:00
Sanel Zukan
28de0f8e96 Using error handler to block XGetImage errors caused in FLTK. Seems how these errors can cause
panel to stop event processing
2009-10-06 11:20:19 +00:00
Sanel Zukan
f7466bed21 Some comment fix.
Simple utf8 test.
2009-10-05 09:43:27 +00:00