Commit Graph

17 Commits

Author SHA1 Message Date
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
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
e4d7e831c9 s/struct/class to make clang happy 2012-12-05 15:31:29 +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
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
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
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
4d10320856 Updated paths 2009-10-03 07:49:30 +00:00
Sanel Zukan
1f96f833d9 Merging new panel in the trunk. 2009-10-03 07:33:08 +00:00