Commit Graph

104 Commits

Author SHA1 Message Date
Sanel Zukan
8a0f7135ee Load system wide battery applet installation. Also added explicit linkage for libdl... 2013-06-03 11:15:59 +00:00
Sanel Zukan
a2a6f6034d Removed some test code. 2013-06-03 11:11:57 +00:00
Sanel Zukan
d30685514c In case DBus wasn't available, do not compile DBus related code. 2013-06-03 11:11:07 +00:00
Sanel Zukan
85490945e6 Importing UPower powered battery monitor. 2013-06-03 11:01:38 +00:00
Sanel Zukan
70e9a9b0b6 Cleaned a little bit strut handling. Oddly, this fixed strut ignoring value for xfwm4... 2013-03-04 23:18:17 +00:00
Sanel Zukan
229914358a Support for panel height resize.
Now, when panel height get resized, children will update their height's too. Children height is always calculated in form (parent()->h() - 10).
2013-01-17 23:53:11 +00:00
Sanel Zukan
7c4628dfa1 Prevent switch to different workspace when minimizing last window on current workspace. 2013-01-17 22:49:49 +00:00
Sanel Zukan
8237708d54 Fixed disabled #ifdef. Also moved refresh interval on 2secs, to easy panel a little bit. 2013-01-11 19:03:37 +00:00
Sanel Zukan
19da305d71 Warning cleanup. 2013-01-09 16:06:45 +00:00
Sanel Zukan
0b4d9a7f26 More work on opensolaris...
Cleaning some warnings.
Added checks for kstat, so cpu applet can show usage via kstat api. Added tests for kstat in configure script.
2013-01-09 16:01:35 +00:00
Sanel Zukan
6495f53404 In case we do not have sysinfo() (!linux), create plain box with some info about it. 2013-01-09 14:04:51 +00:00
Sanel Zukan
d0d94e21dd Comment local applets option. 2013-01-09 13:47:08 +00:00
Sanel Zukan
465eb7dfe3 Moving memory query status code to use sysinfo() instead of /proc. 2013-01-09 13:45:49 +00:00
Sanel Zukan
6a7296bcae Comment debug build. 2013-01-04 14:38:33 +00:00
Sanel Zukan
7b1245f06a Moving hider to panel itself, instead as separate applet.
Hider calls some Panel specific code and doing that from applet will make shit like selinux or apparmor quite unhappy (due relocations), which will refuse to start ede-panel. ...yet another workaround for that crapy security junk.
2013-01-04 14:36:40 +00:00
Sanel Zukan
d09f846380 Better handling on workspace change and setting sticky tag for window. Implemented #217: all windows in taskbar, no matter which desktop was used. 2013-01-04 13:05:42 +00:00
Sanel Zukan
7431373b29 Speed up removal items from group (FLTK 1.3 added faster method). Also fixing strange issue with desktop switch during minimize.
Added AppletWidget class, an experimental code for widgets that wants to accept custom methods. Needs completion though
2013-01-04 10:33:53 +00:00
Sanel Zukan
22f4e094cf Do not create unnecessary test binary. This also prevents TEXTRELS errors on systems where relocations are tracked. 2012-12-27 15:34:59 +00:00
Sanel Zukan
3df8f4ed7e Fixing long standing issue with tray space when tray icon gets destroyed.
When tray icon gets destroyed, space it was occupying would not be cleaned, yielding wholes inside taskbar. Fixing by explicitly hiding and deleting FLTK window which holded application tray window.
2012-12-20 01:50:00 +00:00
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