Commit Graph

85 Commits

Author SHA1 Message Date
Sanel Zukan
eed00b3fbc Added title for panel and desktop, so we can find them in xrestop list. 2012-12-20 01:16:01 +00:00
Sanel Zukan
8bb9028df3 Implementing #213 (Make taskbar buttons stretchable).
Taskbar buttons now can be stretchable or fixed size as before. This commit also fixes a couple of drawing issues when workspace was changed.
2012-12-20 00:58:30 +00:00
Sanel Zukan
a3f2a79d5f Looks like sawfish likes WM_WINDOW_STATE_ICONIC more than NETWM_STATE_HIDDEN. 2012-12-17 22:26:55 +00:00
Sanel Zukan
fc4474f1c7 Removed usage... 2012-12-17 18:58:39 +00:00
Sanel Zukan
68959abca2 Removed unused list. 2012-12-17 18:56:59 +00:00
Sanel Zukan
fb708f76ed Closing #212: Panel buttons are reodered on titlebar click.
By default, pekwm will reorder window list on input focus (probably to optimize things) and this would also reorder buttons inside taskbar. Also, on new window list, all panel buttons would be recreated again, causing many allocations and deallocations. Now, window list received from wm is compared agains internal window storage for diffs.

Fixing this issue made removal some old edewm specific code and made panel nicely working under sawfish ;)
2012-12-17 15:49:33 +00:00
Sanel Zukan
e4d7e831c9 s/struct/class to make clang happy 2012-12-05 15:31:29 +00:00
Sanel Zukan
0cd54534d1 Fixing #205 (Memory applet shows negative swap size).
Fixing bug which is related to memory applet in ede-panel, when swap is used, where negative value was never shown.
2012-12-05 15:14:13 +00:00
Sanel Zukan
9eca312821 Added missing stdlib.h header. 2012-09-03 13:00:09 +00:00
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
db1ebec5d9 Prevent crashes. Have to investigate further. 2012-06-03 12:29:12 +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
dcd742392f Implemented old #93 request: panel feature to be placed on screen by dragging (only putting it to top and bottom are available) and setting panel percentage width. 2012-04-04 09:58:23 +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
28ed6ee5bf Dummy way to search iconv on platformes where it is separate library. More fixes on pekwm configure macros. Fixing compilation for ede-desktop.cpp 2011-11-10 14:20:58 +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
7313d248e3 Add it to loader 2011-09-30 11:43:05 +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
39b5181ad5 Use EDE_APPLICATION to init localization code and set default (and much saner) font size. 2010-03-28 12:54:45 +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