Merge lp:~cairo-dock-team/ubuntu/oneiric/cairo-dock-plug-ins/2.4.0-1 into lp:ubuntu/oneiric/cairo-dock-plug-ins

Proposed by Matthieu Baerts
Status: Merged
Merged at revision: 22
Proposed branch: lp:~cairo-dock-team/ubuntu/oneiric/cairo-dock-plug-ins/2.4.0-1
Merge into: lp:ubuntu/oneiric/cairo-dock-plug-ins
Diff against target: 166580 lines (+31190/-78303)
233 files modified
.pc/.quilt_patches (+1/-0)
.pc/.quilt_series (+1/-0)
.pc/.version (+1/-0)
.pc/01-switcher-force-compact-view.patch/switcher/data/switcher.conf.in (+177/-0)
.pc/01-switcher-force-compact-view.patch/switcher/src/applet-config.c (+78/-0)
.pc/applied-patches (+1/-0)
Animated-icons/src/applet-unfold.c (+2/-2)
Applets.stable (+8/-2)
CMakeLists.txt (+68/-56)
Cairo-Penguin/src/applet-animation.c (+2/-2)
Clipper/data/Clipper.conf.in (+2/-2)
Clipper/src/applet-clipboard.c (+15/-9)
Clipper/src/applet-clipboard.h (+1/-0)
Clipper/src/applet-init.c (+14/-0)
Composite-Manager/data/Composite-Manager.conf.in (+1/-1)
Composite-Manager/src/applet-composite-manager.c (+7/-7)
Dbus/demos/demo_bash/demo_bash.conf (+1/-1)
Dbus/demos/demo_mono/auto-load.conf (+1/-1)
Dbus/demos/demo_mono/demo_mono.conf (+3/-3)
Dbus/demos/demo_python/auto-load.conf (+2/-2)
Dbus/demos/demo_python/demo_python.conf (+3/-3)
Dbus/demos/demo_ruby/auto-load.conf (+1/-1)
Dbus/demos/demo_ruby/demo_ruby.conf (+3/-3)
Dbus/demos/demo_vala/auto-load.conf (+1/-1)
Dbus/demos/demo_vala/demo_vala.conf (+3/-3)
Dbus/interfaces/bash/CDBashApplet.sh (+9/-5)
Dbus/interfaces/mono/CDApplet.cs (+9/-5)
Dbus/interfaces/python/CDApplet.py (+9/-5)
Dbus/interfaces/python/CairoDock.py (+9/-5)
Dbus/interfaces/ruby/CDApplet.rb (+9/-5)
Dbus/interfaces/vala/CDApplet.vala (+13/-9)
Dbus/interfaces/vala/src/CDApplet.h (+11/-7)
Dbus/interfaces/vala/src/CDApplet.vapi (+9/-5)
Dbus/src/applet-struct.h (+0/-1)
Dbus/src/interface-applet-methods.c (+18/-9)
Dbus/src/interface-applet-object.c (+5/-4)
Dbus/src/interface-applet-signals.c (+1/-1)
Dbus/src/interface-main-methods.c (+18/-10)
Disks/data/Disks.conf.in (+5/-2)
Disks/src/applet-config.c (+1/-0)
Disks/src/applet-disks.c (+1/-0)
Disks/src/applet-init.c (+6/-2)
Disks/src/applet-struct.h (+1/-0)
Doncky/data/Doncky.conf.in (+1/-1)
Folders/data/CMakeLists.txt (+1/-1)
Folders/data/Folders.conf.in (+1/-1)
Folders/data/icon.svg (+0/-127)
Folders/src/CMakeLists.txt (+1/-1)
Folders/src/applet-config.c (+3/-4)
Folders/src/applet-init.c (+74/-38)
Folders/src/applet-notifications.c (+51/-15)
Folders/src/applet-struct.h (+1/-1)
GMenu/data/GMenu.conf.in (+1/-1)
Impulse/data/Impulse.conf.in (+1/-1)
Impulse/src/Impulse.c (+4/-4)
Impulse/src/applet-config.c (+2/-0)
Impulse/src/applet-impulse.c (+1/-1)
Indicator-applet/indicator-applet.c (+9/-4)
MeMenu/data/MeMenu.conf.in (+1/-1)
Messaging-Menu/data/Messaging-Menu.conf.in (+1/-1)
Messaging-Menu/src/applet-config.c (+0/-3)
Messaging-Menu/src/applet-menu.c (+68/-24)
Messaging-Menu/src/applet-messaging.c (+3/-3)
Messaging-Menu/src/make-dbus-headers.sh (+2/-0)
Messaging-Menu/src/make-dbus-heaers.sh (+0/-2)
Messaging-Menu/src/messages-service.xml (+2/-4)
Network-Monitor/data/Network-Monitor.conf.in (+7/-4)
Network-Monitor/src/applet-connections.c (+7/-7)
Network-Monitor/src/applet-draw.c (+4/-1)
Network-Monitor/src/applet-menu.c (+32/-28)
Network-Monitor/src/applet-notifications.c (+1/-4)
Network-Monitor/src/applet-wifi.c (+3/-4)
RSSreader/data/RSSreader.conf.in (+1/-1)
Recent-Events/data/Recent-Events.conf.in (+1/-1)
Recent-Events/src/applet-dialog.c (+15/-7)
Recent-Events/src/applet-notifications.c (+10/-5)
Recent-Events/src/applet-search.c (+0/-1)
Remote-Control/src/applet-icon-finder.c (+1/-1)
Scooby-Do/src/applet-draw.c (+4/-4)
Scooby-Do/src/applet-icon-finder.c (+1/-1)
Status-Notifier/data/Status-Notifier.conf.in (+1/-1)
Status-Notifier/src/CMakeLists.txt (+1/-0)
Status-Notifier/src/applet-host-ias.c (+55/-12)
Status-Notifier/src/applet-host-kde.c (+3/-3)
Status-Notifier/src/applet-item.c (+1/-1)
System-Monitor/data/System-Monitor.conf.in (+8/-3)
System-Monitor/src/applet-config.c (+1/-0)
System-Monitor/src/applet-init.c (+9/-5)
System-Monitor/src/applet-monitor.c (+6/-1)
System-Monitor/src/applet-sensors.c (+2/-2)
System-Monitor/src/applet-struct.h (+1/-0)
Toons/data/Toons.conf.in (+5/-2)
Xgamma/data/Xgamma.conf.in (+1/-1)
alsaMixer/data/AlsaMixer.conf.in (+18/-6)
alsaMixer/src/applet-config.c (+9/-1)
alsaMixer/src/applet-draw.c (+82/-2)
alsaMixer/src/applet-draw.h (+2/-1)
alsaMixer/src/applet-init.c (+55/-44)
alsaMixer/src/applet-mixer.c (+0/-20)
alsaMixer/src/applet-struct.h (+3/-1)
clock/data/clock.conf.in (+5/-2)
clock/src/applet-backend-ical.c (+1/-1)
debian/cairo-dock-plug-ins-data.lintian-overrides (+0/-5)
debian/cairo-dock-plug-ins-integration.lintian-overrides (+7/-0)
debian/cairo-dock-plug-ins.install (+2/-1)
debian/cairo-dock-plug-ins.lintian-overrides (+6/-0)
debian/changelog (+101/-0)
debian/control (+8/-8)
debian/copyright (+6/-4)
debian/patches/01-switcher-force-compact-view.patch (+34/-0)
debian/patches/series (+1/-0)
debian/rules (+4/-4)
desklet-rendering/src/rendering-desklet-panel.c (+3/-3)
dnd2share/data/dnd2share.conf.in (+1/-1)
dnd2share/src/applet-dnd2share.c (+1/-1)
dnd2share/src/applet-notifications.c (+11/-9)
dock-rendering/src/rendering-diapo-simple.c (+2/-5)
dock-rendering/src/rendering-rainbow.c (+1/-1)
dock-rendering/toto (+0/-217)
dustbin/data/dustbin.conf.in (+1/-1)
dustbin/data/themes/CMakeLists.txt (+0/-11)
dustbin/src/applet-init.c (+7/-5)
dustbin/src/applet-trashes-manager.c (+2/-2)
gvfs-integration/cairo-dock-gio-vfs.c (+161/-122)
illusion/src/applet-break.c (+1/-1)
illusion/src/applet-lightning.c (+2/-2)
keyboard-indicator/data/keyboard-indicator.conf.in (+1/-1)
keyboard-indicator/src/applet-xklavier.c (+3/-3)
logout/data/logout.conf.in (+1/-1)
logout/src/applet-logout.c (+20/-6)
mail/data/mail.conf.in (+1/-1)
mail/src/cd-mail-applet-notifications.c (+1/-1)
musicPlayer/data/musicPlayer.conf.in (+6/-5)
musicPlayer/src/3dcover-draw.c (+1/-5)
musicPlayer/src/CMakeLists.txt (+26/-130)
musicPlayer/src/applet-amarok1.c (+3/-4)
musicPlayer/src/applet-amarok2.c (+2/-3)
musicPlayer/src/applet-audacious.c (+73/-134)
musicPlayer/src/applet-banshee.c (+59/-134)
musicPlayer/src/applet-clementine.c (+2/-3)
musicPlayer/src/applet-config.c (+6/-12)
musicPlayer/src/applet-cover.c (+23/-23)
musicPlayer/src/applet-dbus.c (+71/-139)
musicPlayer/src/applet-dbus.h (+6/-17)
musicPlayer/src/applet-draw.c (+40/-15)
musicPlayer/src/applet-exaile.c (+39/-91)
musicPlayer/src/applet-exaile3.c (+6/-7)
musicPlayer/src/applet-gmusicbrowser.c (+6/-7)
musicPlayer/src/applet-guayadeque.c (+2/-3)
musicPlayer/src/applet-init.c (+23/-34)
musicPlayer/src/applet-listen.c (+29/-69)
musicPlayer/src/applet-mpris.c (+58/-148)
musicPlayer/src/applet-mpris.h (+1/-1)
musicPlayer/src/applet-mpris2.c (+637/-0)
musicPlayer/src/applet-mpris2.h (+30/-0)
musicPlayer/src/applet-musicplayer.c (+312/-49)
musicPlayer/src/applet-musicplayer.h (+12/-6)
musicPlayer/src/applet-notifications.c (+234/-132)
musicPlayer/src/applet-qmmp.c (+6/-7)
musicPlayer/src/applet-quodlibet.c (+59/-121)
musicPlayer/src/applet-rhythmbox.c (+94/-133)
musicPlayer/src/applet-songbird.c (+9/-9)
musicPlayer/src/applet-struct.h (+24/-61)
musicPlayer/src/applet-xmms.c (+3/-4)
musicPlayer/src/applet-xmms2.c (+6/-7)
netspeed/data/netspeed.conf.in (+5/-2)
netspeed/src/applet-config.c (+1/-0)
netspeed/src/applet-init.c (+9/-4)
netspeed/src/applet-netspeed.c (+11/-17)
netspeed/src/applet-struct.h (+1/-0)
po/ar.po (+1038/-946)
po/cairo-dock.pot (+1022/-925)
po/cs.po (+1035/-1908)
po/de.po (+1035/-2030)
po/el.po (+1031/-1592)
po/en_GB.po (+1078/-4687)
po/es.po (+1061/-3078)
po/et.po (+1037/-1073)
po/eu.po (+1037/-981)
po/fr.po (+1083/-5108)
po/hu.po (+1205/-1752)
po/id.po (+1037/-936)
po/it.po (+1069/-5592)
po/ja.po (+1281/-4780)
po/nl.po (+1077/-5437)
po/pl.po (+1038/-937)
po/pt.po (+1035/-2479)
po/pt_BR.po (+1059/-4798)
po/ru.po (+1038/-4831)
po/sk.po (+1031/-4302)
po/sr.po (+1034/-1128)
po/sv.po (+1032/-2633)
po/tr.po (+1037/-1350)
po/uk.po (+1033/-4630)
po/zh_CN.po (+1036/-3113)
po/zh_TW.po (+1032/-3988)
powermanager/data/powermanager.conf.in (+10/-4)
powermanager/src/powermanager-common.c (+3/-3)
powermanager/src/powermanager-config.c (+1/-0)
powermanager/src/powermanager-dbus.c (+0/-580)
powermanager/src/powermanager-dbus.h (+0/-37)
powermanager/src/powermanager-draw.c (+40/-21)
powermanager/src/powermanager-init.c (+30/-17)
powermanager/src/powermanager-menu-functions.c (+40/-12)
powermanager/src/powermanager-struct.h (+7/-16)
powermanager/src/powermanager-upower.c (+7/-10)
quick-browser/data/quick-browser.conf.in (+1/-1)
quick-browser/src/applet-menu.c (+3/-1)
shortcuts/data/shortcuts.conf.in (+1/-1)
shortcuts/src/applet-disk-usage.c (+1/-1)
showDesktop/data/showDesktop.conf.in (+1/-1)
slider/data/slider.conf.in (+5/-2)
stack/data/stack.conf.in (+1/-1)
stack/src/applet-load-icons.c (+1/-1)
stack/src/applet-stack.c (+1/-1)
switcher/data/switcher.conf.in (+0/-4)
switcher/src/applet-config.c (+4/-2)
switcher/src/applet-desktops.c (+1/-1)
switcher/src/applet-draw.c (+4/-4)
switcher/src/applet-load-icons.c (+1/-1)
systray/data/systray.conf.in (+1/-1)
template/data/template.conf.in (+1/-1)
terminal/data/terminal.conf.in (+2/-2)
tomboy/data/tomboy.conf.in (+1/-1)
tomboy/src/tomboy-dbus.c (+1/-1)
tomboy/src/tomboy-draw.c (+1/-1)
weather/data/weather.conf.in (+1/-1)
weblets/data/weblets.conf.in (+1/-1)
wifi/data/wifi.conf.in (+6/-3)
wifi/src/applet-draw.c (+35/-7)
wifi/src/applet-init.c (+3/-2)
xfce-integration/data/lock-screen.sh (+2/-2)
xfce-integration/src/CMakeLists.txt (+2/-2)
To merge this branch: bzr merge lp:~cairo-dock-team/ubuntu/oneiric/cairo-dock-plug-ins/2.4.0-1
Reviewer Review Type Date Requested Status
Ken VanDine Disapprove
Fabrice Coutadeur (community) Needs Fixing
Review via email: mp+77046@code.launchpad.net

Description of the change

Hello,

The Cairo-Dock team proposes a new version of its Cairo-Dock packages.

This is the Upstream (short) ChangeLog:
 * Upstream (short) ChangeLog (2.4.0~0beta2 -> 2.4.0~1):
   - Powermanager: correctly release the reference on the device object
   - logout: now works if there is no session-manager
   - Status-Notifier: fixed a small bug
      (wrong callback in cairo_dock_stop_watching_dbus_name_owner)
   - Folders: fixed the positionning of the new icon
      and the dialog when dropping a folder inside the dock
      and fixed the icon-rendering
   - Dustbin: use the default theme if no icon is found
   - Impulse: the default context seems to be ok and not an error
   - Status-Notifier: On Ubuntu Oneiric (with indicator-0.4)
      the ApplicationAdded signal has changed and has a new parameter
   - Disable MeMenu on Oneiric (no longer available with indicator-0.4)
   - CMakeLists.txt: Improved output messages
   - Slide view: fixed a small offset in vertical view
   - musicPlayer:
    + split MPRIS 1.0 and 2.0 to help debugging and finding the right
       name of the bug.
    + 'rhythmbox-client' tool is no longer available: used MPRIS
    + Disable Amazon service (it no longer work)
    + Cover: fixed corrupted icons: some players (e.g. the latest version
       of RB) copy covers on their cache forlder but it takes a few time.
    + Fixed the update the icon and its name if the player is stopped.
    + Prevent a crash if the name given by MPRIS is NULL
   - Powermanager: try to prevent to have a few dialogues at the same time
   - PowerManager and AlsaMixer: hidden gnome2 or 3 apps if not available
   - Messaging-Menu: Updated for Natty and Oneiric
      (dbus-menu gives us GVariant instead of GValue objects)
   - Alsamixer: fixed a small bug on reload
   - Dbus: Bash interface: Fixed a typo with emblem positions
   - Sys-monitor: fixed a bug which prevented from getting
      the CPU temperature in some cases
   - Compiz (0.9): type filter: replaced type=utility by type=Utility
   - Updated the version of all applets that have gauges
     in order to use the right directory
   - Wifi: Fixed the status if we are not connected
   - Dbus: removed a conflict with the Help applet
   - Messaging-Menu: updated applet-menu.c => Memory leaks on pixbufs
   - Dbus: Fixed a crash when changing dock theme if a 'third-party' applet
      is running
   - Netspeed: in /proc/net/dev, there are 8 values to drop after the card id
      except if there is whitespaces just after this ':' character
      and fixed order and value for ON_ICON display
   - dock-rendering/toto: removed a useless file
   - Clipper: fixed the loading of the remembered items
      (they had the wrong type) and fixed a bug if we reduce the list of items
   - Folders, dustbin, Network-Monitor: tried to not use cast if it's possible
   - Code cleaned and re-organised a few functions
     (e.g. emblem references has been renamed)
   - Removed useless files: powermanager-dbus*
   - Updating translations
   - Fixed a few warnings at the compilation
   - Removed a few useless output messages
   - Fixed these LP bugs:
    + Empty trash from the trashcan does not delete files
       from usb harddisks: LP: #658681
    + Switcher applet doesn't respect desktop numbers LP: #626782

Note that this is the stable version of the 2.4 branch. It fixes a lot of bugs of the previous version (2.4.0~0beta2).

This branch should be ready to be pushed on lp:ubuntu/cairo-dock-plug-ins (except the UNRELEASED version in debian/changelog)

Thank you for your help! :)

PS: Don't forget to upload this package AND THE CORE ( LP: #859982 )

To post a comment you must log in.
22. By Matthieu Baerts

* New upstream bug fix release. (LP: #859984)
* Upstream (short) ChangeLog (2.4.0~0beta2 -> 2.4.0~1):
 - Powermanager: correctly release the reference on the device object
 - logout: now works if there is no session-manager
 - Status-Notifier: fixed a small bug
    (wrong callback in cairo_dock_stop_watching_dbus_name_owner)
 - Folders: fixed the positionning of the new icon
    and the dialog when dropping a folder inside the dock
    and fixed the icon-rendering
 - Dustbin: use the default theme if no icon is found
 - Impulse: the default context seems to be ok and not an error
 - Status-Notifier: On Ubuntu Oneiric (with indicator-0.4)
    the ApplicationAdded signal has changed and has a new parameter
 - Disable MeMenu on Oneiric (no longer available with indicator-0.4)
 - CMakeLists.txt: Improved output messages
 - Slide view: fixed a small offset in vertical view
 - musicPlayer:
  + split MPRIS 1.0 and 2.0 to help debugging and finding the right
     name of the bug.
  + 'rhythmbox-client' tool is no longer available: used MPRIS
  + Disable Amazon service (it no longer work)
  + Cover: fixed corrupted icons: some players (e.g. the latest version
     of RB) copy covers on their cache forlder but it takes a few time.
  + Fixed the update the icon and its name if the player is stopped.
  + Prevent a crash if the name given by MPRIS is NULL
 - Powermanager: try to prevent to have a few dialogues at the same time
 - PowerManager and AlsaMixer: hidden gnome2 or 3 apps if not available
 - Messaging-Menu: Updated for Natty and Oneiric
    (dbus-menu gives us GVariant instead of GValue objects)
 - Alsamixer: fixed a small bug on reload
 - Dbus: Bash interface: Fixed a typo with emblem positions
 - Sys-monitor: fixed a bug which prevented from getting
    the CPU temperature in some cases
 - Compiz (0.9): type filter: replaced type=utility by type=Utility
 - Updated the version of all applets that have gauges
   in order to use the right directory
 - Wifi: Fixed the status if we are not connected
 - Dbus: removed a conflict with the Help applet
 - Messaging-Menu: updated applet-menu.c => Memory leaks on pixbufs
 - Dbus: Fixed a crash when changing dock theme if a 'third-party' applet
    is running
 - Netspeed: in /proc/net/dev, there are 8 values to drop after the card id
    except if there is whitespaces just after this ':' character
    and fixed order and value for ON_ICON display
 - dock-rendering/toto: removed a useless file
 - Clipper: fixed the loading of the remembered items
    (they had the wrong type) and fixed a bug if we reduce the list of items
 - Folders, dustbin, Network-Monitor: tried to not use cast if it's possible
 - Code cleaned and re-organised a few functions
   (e.g. emblem references has been renamed)
 - Removed useless files: powermanager-dbus*
 - Updating translations
 - Fixed a few warnings at the compilation
 - Removed a few useless output messages
 - Fixed these LP bugs:
  + Empty trash from the trashcan does not delete files
     from usb harddisks: LP: #658681
  + Switcher applet doesn't respect desktop numbers LP: #626782
* debian/control:
 - Updated the version of cairo-dock-[core;data;dev].
 - Added gvfs as 'Suggests' for cairo-dock-plug-ins-integration
    (Used for managing files)
 - Removed 'libthunar-vfs-1-dev' (libthunar-vfs is no longer installed
    by default since XFCE 4.8 and it is replaced by gvfs)
 - Removed 'indicator-me' (no longer available
    and the installation of Cairo-Dock produces an error)
 - Moved 'indicator-messages' to 'Recommends'
* debian/rules:
 - Updated the name of CMake extras flags

23. By Matthieu Baerts

* Upstream (short) ChangeLog (2.4.0~1 -> 2.4.0~2):
 - Messaging-Menu: fixed a wrong g_object_unref (double free)
    and a small memory leak
 - Folders: fixed a tiny warning at the compilation (32bits)
 - switcher: removed an unnecessary config parameter
 - Folders: file size: used English instead of French translation.
 - Indicator applet: Forced a cast to remove an annoying warning
    due to clumsy dbusmenu_gtkmenu_new() declaration
 - Fixed the detection of the screensaver
 - Fixed tiny warnings at the compilation (with CAIRO_CONTAINER)

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Hi,

Please follow the FFe process as described at https://wiki.ubuntu.com/FreezeExceptionProcess as we are way past Feature Freeze, as described in Bug #859984. Marking as Needs fixing in the meantime.

review: Needs Fixing
Revision history for this message
Matthieu Baerts (matttbe) wrote :

ACK given by pitti. Thanks to him!

Revision history for this message
Ken VanDine (ken-vandine) wrote :

FTBFS for me. Looks like there is a problem with the branch, files not removed then trying to keep the changes in the diff.

dpkg-source: error: cannot represent change to cairo-dock-plug-ins-2.4.0~2/terminal/data/icon.png: binary file contents changed

review: Disapprove
Revision history for this message
Matthieu Baerts (matttbe) wrote :

@Ken VanDine: I don't understand... this file is the same as before. The last changed has been made more than one year ago.
So... what can I do to fix this strange bug?

24. By Matthieu Baerts

* debian/cairo-dock-plug-ins-data.lintian-overrides:
 - Deleted (now useless)
* debian/cairo-dock-plug-ins.lintian-overrides:
 - Cairo-Dock Plug-Ins are not linked to gldi
 - shlib-without-versioned-soname: forwarded to upstream.
* debian/cairo-dock-plug-ins-integration.lintian-overrides:
 - Cairo-Dock Plug-Ins are not linked to gldi
 - ldconfig and shlibs are not needed
* debian/cairo-dock-plug-ins.install:
 - Fixed lintian errors: package-installs-python-bytecode
* debian/control: Fixed lintian warnings:
 - python-script-but-no-python-dep
 - description-synopsis-starts-with-article
* debian/changelog:
 - Fixed lintian warning: old-fsf-address-in-copyright-file
* debian/patches/01-switcher-force-compact-view.patch:
 - Forced the compact view because the other doesn't work

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added directory '.pc'
=== added file '.pc/.quilt_patches'
--- .pc/.quilt_patches 1970-01-01 00:00:00 +0000
+++ .pc/.quilt_patches 2011-10-08 22:23:24 +0000
@@ -0,0 +1,1 @@
1debian/patches
02
=== added file '.pc/.quilt_series'
--- .pc/.quilt_series 1970-01-01 00:00:00 +0000
+++ .pc/.quilt_series 2011-10-08 22:23:24 +0000
@@ -0,0 +1,1 @@
1series
02
=== added file '.pc/.version'
--- .pc/.version 1970-01-01 00:00:00 +0000
+++ .pc/.version 2011-10-08 22:23:24 +0000
@@ -0,0 +1,1 @@
12
02
=== added directory '.pc/01-switcher-force-compact-view.patch'
=== added directory '.pc/01-switcher-force-compact-view.patch/switcher'
=== added directory '.pc/01-switcher-force-compact-view.patch/switcher/data'
=== added file '.pc/01-switcher-force-compact-view.patch/switcher/data/switcher.conf.in'
--- .pc/01-switcher-force-compact-view.patch/switcher/data/switcher.conf.in 1970-01-01 00:00:00 +0000
+++ .pc/01-switcher-force-compact-view.patch/switcher/data/switcher.conf.in 2011-10-08 22:23:24 +0000
@@ -0,0 +1,177 @@
1#@VERSION_SWITCHER@
2
3#[gtk-about]
4[Icon]
5
6#F[Icon]
7frame_maininfo=
8
9#d Name of the dock it belongs to:
10dock name =
11
12#s Name of the icon as it will appear in its caption in the dock:
13name =
14 #v
15sep_display=
16
17#S+ Image filename:
18#{Leave empty to use the default one.}
19icon =
20
21#j+[0;400] Desired icon size for this applet
22#{Set to 0 to use the default applet size}
23icon size = 0;0
24
25order=
26
27#F[Applet's Handbook]
28frame_hand=
29#A
30handbook=switcher
31
32#[gtk-convert]
33[Desklet]
34
35#X[Position]
36frame_pos =
37
38#b Lock position?
39#{If locked, the desklet cannot be moved by simply dragging it with the left mouse button. It can still be moved with ALT + left-click.}
40locked = false
41
42#j+[24;512] Desklet dimensions (width x height):
43#{Depending on your WindowManager, you may be able to resize this with ALT + middle-click or ALT + left-click.}
44size = 96;96
45
46#i[-2048;2048] Desklet position (x, y):
47x position=10
48#i[-2048;2048] ...
49y position=10
50
51#X[Visibility]
52frame_visi =
53
54#b Is detached from the dock
55initially detached=false
56#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:
57accessibility=0
58#b Should be visible on all desktops?
59sticky=true
60
61
62
63
64#F[Decorations;gtk-orientation-portrait]
65frame_deco=
66
67#o+ Choose a decoration theme for this desklet:
68#{Choose 'Custom decorations' to define your own decorations below.}
69decorations = default
70
71#v
72sep_deco =
73
74#S+ Background image:
75#{Image to be displayed below drawings, e.g. a frame. Leave empty for no image.}
76bg desklet =
77#e+[0;1] Background transparency:
78bg alpha = 1
79#i+[0;256] Left offset:
80#{in pixels. Use this to adjust the left position of drawings.}
81left offset = 0
82#i+[0;256] Top offset:
83#{in pixels. Use this to adjust the top position of drawings.}
84top offset = 0
85#i+[0;256] Right offset:
86#{in pixels. Use this to adjust the right position of drawings.}
87right offset = 0
88#i+[0;256] Bottom offset:
89#{in pixels. Use this to adjust the bottom position of drawings.}
90bottom offset = 0
91#S+ Foreground image:
92#{Image to be displayed above the drawings, e.g. a reflection. Leave empty for no image.}
93fg desklet =
94#e+[0;1] Foreground tansparency:
95fg alpha = 1
96
97
98#[gtk-preferences]
99[Configuration]
100
101#F[Configuration]
102frame_conf =
103
104#B Use the compact mode?
105#{All desktops will be drawn on the main icon. Otherwise a sub-dock will contain all desktops.}
106Vue Simple = true
107
108#b Preserve the ratio of the screen ?
109preserve ratio = true
110
111#b Map wallpaper to icons?
112Map Wallpaper = true
113
114#b Show desktop number on icons?
115display numero desktop = true
116
117#B Draw windows on icons?
118Draw Windows = true
119
120#b Draw hidden windows?
121Draw hidden Windows = false
122
123#v
124sep_conf =
125
126#l[Show windows' list;Show desktop;Expose all the desktops;Expose all the windows] Action on middle-click:
127action on click = 0
128
129#U Workspace names :
130desktop names =
131
132
133#F[Display options]
134frame_disp =
135
136#i+[0;8] Size of the inside lines :
137inlinesize = 3
138
139#C+ Internal line colour:
140#{r, g, b, a}
141rgbinlinecolor = 0.0; 0.0; 0.5; 1.
142
143#i+[0;8] External line size:
144linesize = 3
145
146#C+ External line colour:
147#{r, g, b, a}
148rgblinecolor = 0.0; 0.0; 0.5; 1.
149
150#C+ Window line colour:
151#{r, g, b, a}
152rgbwlinecolor = 0.0; 0.0; 0.5; 1.
153
154#v
155sep_cur =
156
157#C+ Current desktop colour:
158#{r, g, b, a}
159rgbindcolor = 0.0; 0.0; 0.5; 0.5
160
161#l+[draw a frame;fill;fill others] How to draw the current desktop:
162fill current = 1
163
164#v
165sep_other =
166
167#S+ Icon to use in expanded mode if wallpaper is not mapped:
168#{Leave empty to use the default one.}
169default icon =
170
171
172#n+ Sub-dock view name:
173#{Leave empty to use default sub-dock view.}/
174renderer =
175
176#b+ In expanded mode, render the desklet in 3D?
1773D desklet = true
0178
=== added directory '.pc/01-switcher-force-compact-view.patch/switcher/src'
=== added file '.pc/01-switcher-force-compact-view.patch/switcher/src/applet-config.c'
--- .pc/01-switcher-force-compact-view.patch/switcher/src/applet-config.c 1970-01-01 00:00:00 +0000
+++ .pc/01-switcher-force-compact-view.patch/switcher/src/applet-config.c 2011-10-08 22:23:24 +0000
@@ -0,0 +1,78 @@
1/**
2* This file is a part of the Cairo-Dock project
3*
4* Copyright : (C) see the 'copyright' file.
5* E-mail : see the 'copyright' file.
6*
7* This program is free software; you can redistribute it and/or
8* modify it under the terms of the GNU General Public License
9* as published by the Free Software Foundation; either version 3
10* of the License, or (at your option) any later version.
11*
12* This program is distributed in the hope that it will be useful,
13* but WITHOUT ANY WARRANTY; without even the implied warranty of
14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15* GNU General Public License for more details.
16* You should have received a copy of the GNU General Public License
17* along with this program. If not, see <http://www.gnu.org/licenses/>.
18*/
19
20#include <string.h>
21
22#include "applet-struct.h"
23#include "applet-config.h"
24#include "applet-load-icons.h"
25
26
27CD_APPLET_GET_CONFIG_BEGIN
28 //\_________________ On recupere toutes les valeurs de notre fichier de conf.
29 myConfig.bCompactView = CD_CONFIG_GET_BOOLEAN_WITH_DEFAULT ("Configuration", "Vue Simple", TRUE);
30 myConfig.bPreserveScreenRatio = CD_CONFIG_GET_BOOLEAN ("Configuration", "preserve ratio");
31 myConfig.bMapWallpaper = CD_CONFIG_GET_BOOLEAN_WITH_DEFAULT ("Configuration", "Map Wallpaper", TRUE);
32 myConfig.bDisplayNumDesk = CD_CONFIG_GET_BOOLEAN_WITH_DEFAULT ("Configuration", "display numero desktop", TRUE);
33 myConfig.bDrawWindows = CD_CONFIG_GET_BOOLEAN_WITH_DEFAULT ("Configuration", "Draw Windows", TRUE);
34 myConfig.bDisplayHiddenWindows = CD_CONFIG_GET_BOOLEAN_WITH_DEFAULT ("Configuration", "Draw hidden Windows", TRUE);
35 myConfig.iActionOnMiddleClick = CD_CONFIG_GET_INTEGER_WITH_DEFAULT ("Configuration", "action on click", 0);
36
37 // couleur des lignes interieures
38 myConfig.iInLineSize = CD_CONFIG_GET_INTEGER("Configuration", "inlinesize");
39 double inlinecouleur[4] = {0., 0., 0.5, 1.};
40 CD_CONFIG_GET_COLOR_WITH_DEFAULT ("Configuration", "rgbinlinecolor",myConfig.RGBInLineColors, inlinecouleur);
41
42 // couleur du bureau courant.
43 double indcouleur[4] = {0., 0., 0.5, 1.};
44 CD_CONFIG_GET_COLOR_WITH_DEFAULT ("Configuration", "rgbindcolor",myConfig.RGBIndColors, indcouleur);
45 myConfig.iDrawCurrentDesktopMode = CD_CONFIG_GET_INTEGER ("Configuration", "fill current");
46
47 // couleur des lignes exterieures.
48 myConfig.iLineSize = CD_CONFIG_GET_INTEGER("Configuration", "linesize");
49 double linecouleur[4] = {0., 0., 0.5, 1.};
50 CD_CONFIG_GET_COLOR_WITH_DEFAULT ("Configuration", "rgblinecolor",myConfig.RGBLineColors, linecouleur);
51
52 // couleur des traits des fenetres.
53 double wlinecouleur[4] = {0., 0., 0.5, 1.};
54 CD_CONFIG_GET_COLOR_WITH_DEFAULT ("Configuration", "rgbwlinecolor",myConfig.RGBWLineColors, wlinecouleur);
55
56 myConfig.cDefaultIcon = CD_CONFIG_GET_FILE_PATH ("Configuration", "default icon", "default.svg");
57 myConfig.cRenderer = CD_CONFIG_GET_STRING ("Configuration", "renderer");
58 myConfig.bDesklet3D = CD_CONFIG_GET_BOOLEAN ("Configuration", "3D desklet");
59
60 gsize iNbNamesSize;
61 myConfig.cDesktopNames = CD_CONFIG_GET_STRING_LIST_WITH_DEFAULT ("Configuration", "desktop names", &iNbNamesSize, "Work;Game;Video;Chat");
62 myConfig.iNbNames = (gint) iNbNamesSize;
63CD_APPLET_GET_CONFIG_END
64
65
66CD_APPLET_RESET_CONFIG_BEGIN
67 g_free (myConfig.cRenderer);
68 g_free (myConfig.cDefaultIcon);
69 if (myConfig.cDesktopNames != NULL)
70 g_strfreev (myConfig.cDesktopNames);
71CD_APPLET_RESET_CONFIG_END
72
73
74CD_APPLET_RESET_DATA_BEGIN
75 CD_APPLET_DELETE_MY_ICONS_LIST;
76 cairo_surface_destroy (myData.pDefaultMapSurface);
77 cairo_surface_destroy (myData.pDesktopBgMapSurface);
78CD_APPLET_RESET_DATA_END
079
=== added file '.pc/applied-patches'
--- .pc/applied-patches 1970-01-01 00:00:00 +0000
+++ .pc/applied-patches 2011-10-08 22:23:24 +0000
@@ -0,0 +1,1 @@
101-switcher-force-compact-view.patch
02
=== modified file 'Animated-icons/src/applet-unfold.c'
--- Animated-icons/src/applet-unfold.c 2011-04-20 20:46:51 +0000
+++ Animated-icons/src/applet-unfold.c 2011-10-08 22:23:24 +0000
@@ -29,7 +29,7 @@
29{29{
30 g_return_if_fail (pIcon->pSubDock != NULL && pIcon->pIconBuffer != NULL);30 g_return_if_fail (pIcon->pSubDock != NULL && pIcon->pIconBuffer != NULL);
31 int w, h;31 int w, h;
32 cairo_dock_get_icon_extent (pIcon, CAIRO_CONTAINER (pDock), &w, &h);32 cairo_dock_get_icon_extent (pIcon, &w, &h);
33 double f = 1. - pIcon->pSubDock->fFoldingFactor;33 double f = 1. - pIcon->pSubDock->fFoldingFactor;
34 double fMaxScale = cairo_dock_get_max_scale (CAIRO_CONTAINER (pDock));34 double fMaxScale = cairo_dock_get_max_scale (CAIRO_CONTAINER (pDock));
35 double z = pIcon->fScale / fMaxScale * pDock->container.fRatio;35 double z = pIcon->fScale / fMaxScale * pDock->container.fRatio;
@@ -149,7 +149,7 @@
149{149{
150 g_return_if_fail (pIcon->pSubDock != NULL);150 g_return_if_fail (pIcon->pSubDock != NULL);
151 int w, h;151 int w, h;
152 cairo_dock_get_icon_extent (pIcon, CAIRO_CONTAINER (pDock), &w, &h);152 cairo_dock_get_icon_extent (pIcon, &w, &h);
153 double f = 1. - pIcon->pSubDock->fFoldingFactor;153 double f = 1. - pIcon->pSubDock->fFoldingFactor;
154 double fMaxScale = cairo_dock_get_max_scale (CAIRO_CONTAINER (pDock));154 double fMaxScale = cairo_dock_get_max_scale (CAIRO_CONTAINER (pDock));
155 double z = pIcon->fScale / fMaxScale * pDock->container.fRatio;155 double z = pIcon->fScale / fMaxScale * pDock->container.fRatio;
156156
=== modified file 'Applets.stable' (properties changed: +x to -x)
--- Applets.stable 2011-04-20 20:46:51 +0000
+++ Applets.stable 2011-10-08 22:23:24 +0000
@@ -23,7 +23,7 @@
23terminal23terminal
24Cairo-Penguin24Cairo-Penguin
25showDesktop25showDesktop
26compiz-icon26# compiz-icon # removed in v2.4.0
27slider27slider
28Clipper28Clipper
29GMenu29GMenu
@@ -44,7 +44,7 @@
44###Last addition of v2.1.0 :44###Last addition of v2.1.0 :
45System-Monitor45System-Monitor
46dnd2share46dnd2share
47Music-Player47musicPlayer
48mail48mail
49###Added in v2.1.349###Added in v2.1.3
50RSSReader50RSSReader
@@ -57,6 +57,12 @@
57Remote-Control57Remote-Control
58Recent-Events58Recent-Events
59Status-Notifier59Status-Notifier
60###Added in v2.4.0
61Composite-Manager
62Impulse
60###All other applets are considered to be either not enough functionnal, buggy/untested, or under heavy development.63###All other applets are considered to be either not enough functionnal, buggy/untested, or under heavy development.
61#Scooby-Do64#Scooby-Do
62#Network-Monitor65#Network-Monitor
66#Disks
67#Doncky
68#KDE experimental
6369
=== modified file 'CMakeLists.txt'
--- CMakeLists.txt 2011-08-09 19:51:45 +0000
+++ CMakeLists.txt 2011-10-08 22:23:24 +0000
@@ -10,9 +10,9 @@
10########### project ###############10########### project ###############
1111
12project ("cairo-dock-plugins")12project ("cairo-dock-plugins")
13set (VERSION "2.4.0~0beta2")13set (VERSION "2.4.0~2")
1414
15add_definitions (-std=c99 -Wstrict-prototypes -Wextra -Wwrite-strings -Wuninitialized -Werror-implicit-function-declaration) #-Wunreachable-code -Wno-unused-parameter -Wall15add_definitions (-std=c99 -Wextra -Wwrite-strings -Wuninitialized -Werror-implicit-function-declaration) # removed for stable versions: -Wstrict-prototypes #-Wunreachable-code -Wno-unused-parameter -Wall
16if (NOT ${CMAKE_BUILD_TYPE})16if (NOT ${CMAKE_BUILD_TYPE})
17 add_definitions (-O3)17 add_definitions (-O3)
18endif()18endif()
@@ -130,7 +130,7 @@
130 set (MODULES_MISSING "${MODULES_MISSING} alsa")130 set (MODULES_MISSING "${MODULES_MISSING} alsa")
131 else()131 else()
132 set (GETTEXT_ALSA_MIXER ${GETTEXT_PLUGINS})132 set (GETTEXT_ALSA_MIXER ${GETTEXT_PLUGINS})
133 set (VERSION_ALSA_MIXER "1.0.13")133 set (VERSION_ALSA_MIXER "1.1.1")
134 set (PACKAGE_ALSA_MIXER "cd-AlsaMixer")134 set (PACKAGE_ALSA_MIXER "cd-AlsaMixer")
135 set (with_alsa "yes")135 set (with_alsa "yes")
136 set (alsa_mixerdatadir "${pluginsdatadir}/AlsaMixer")136 set (alsa_mixerdatadir "${pluginsdatadir}/AlsaMixer")
@@ -178,7 +178,7 @@
178 set (MODULES_MISSING "${MODULES_MISSING} libical")178 set (MODULES_MISSING "${MODULES_MISSING} libical")
179endif()179endif()
180set (GETTEXT_CLOCK ${GETTEXT_PLUGINS})180set (GETTEXT_CLOCK ${GETTEXT_PLUGINS})
181set (VERSION_CLOCK "2.1.3")181set (VERSION_CLOCK "2.1.4")
182set (PACKAGE_CLOCK "cd-clock")182set (PACKAGE_CLOCK "cd-clock")
183set (clockuserdirname "clock")183set (clockuserdirname "clock")
184set (clockdatadir "${pluginsdatadir}/clock")184set (clockdatadir "${pluginsdatadir}/clock")
@@ -186,7 +186,7 @@
186add_subdirectory (clock)186add_subdirectory (clock)
187187
188############# COMPOSITE_MANAGER #################188############# COMPOSITE_MANAGER #################
189message (STATUS "> Coposite Manager:")189message (STATUS "> Composite Manager:")
190set (GETTEXT_COMPOSITE_MANAGER ${GETTEXT_PLUGINS})190set (GETTEXT_COMPOSITE_MANAGER ${GETTEXT_PLUGINS})
191set (VERSION_COMPOSITE_MANAGER "1.0.0")191set (VERSION_COMPOSITE_MANAGER "1.0.0")
192set (PACKAGE_COMPOSITE_MANAGER "cd-Composite-Manager")192set (PACKAGE_COMPOSITE_MANAGER "cd-Composite-Manager")
@@ -196,7 +196,7 @@
196196
197############# DBUS #################197############# DBUS #################
198message (STATUS "> DBus:")198message (STATUS "> DBus:")
199message (STATUS "* Python:")199message (STATUS " * Python:")
200find_program (PYTHON_EXECUTABLE python)200find_program (PYTHON_EXECUTABLE python)
201EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "import sys; print sys.version" OUTPUT_VARIABLE PYTHON_VERSION)201EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "import sys; print sys.version" OUTPUT_VARIABLE PYTHON_VERSION)
202if ("${PYTHON_VERSION}" STREQUAL "")202if ("${PYTHON_VERSION}" STREQUAL "")
@@ -206,22 +206,22 @@
206 set (with_python "no")206 set (with_python "no")
207else()207else()
208 STRING (REGEX REPLACE "\n" "" PYTHON_VERSION ${PYTHON_VERSION})208 STRING (REGEX REPLACE "\n" "" PYTHON_VERSION ${PYTHON_VERSION})
209 message (STATUS "Python Version: ${PYTHON_VERSION}")209 message (STATUS " Python Version: ${PYTHON_VERSION}")
210 GET_FILENAME_COMPONENT(DEBIAN_VERSION /etc/debian_version ABSOLUTE)210 GET_FILENAME_COMPONENT(DEBIAN_VERSION /etc/debian_version ABSOLUTE)
211 if (EXISTS ${DEBIAN_VERSION})211 if (EXISTS ${DEBIAN_VERSION})
212 message (STATUS " will use '--install-layout deb' with 'python setup.py install'")212 message (STATUS " will use '--install-layout deb' with 'python setup.py install'")
213 set (DEBIAN_INSTALL_LAYOUT "--install-layout deb")213 set (DEBIAN_INSTALL_LAYOUT "--install-layout deb")
214 endif()214 endif()
215 set (PYTHON_FOUND "TRUE")215 set (PYTHON_FOUND "TRUE")
216 set (with_python "yes")216 set (with_python "yes")
217endif()217endif()
218218
219message (STATUS "* Ruby:")219message (STATUS " * Ruby:")
220# find_package(Ruby) found libs of ruby-dev but we only need a directory where we can install ruby libs.220# find_package(Ruby) found libs of ruby-dev but we only need a directory where we can install ruby libs.
221find_program (RUBY_EXECUTABLE ruby)221find_program (RUBY_EXECUTABLE ruby)
222EXECUTE_PROCESS(COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print Config::CONFIG['rubylibdir']"222EXECUTE_PROCESS(COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print Config::CONFIG['rubylibdir']"
223 OUTPUT_VARIABLE RUBY_LIB_DIR)223 OUTPUT_VARIABLE RUBY_LIB_DIR)
224message (STATUS "RUBY_LIBRARY: ${RUBY_LIB_DIR}")224message (STATUS " Ruby library dir: ${RUBY_LIB_DIR}")
225if ("${RUBY_LIB_DIR}" STREQUAL "" OR "${RUBY_LIB_DIR}" STREQUAL "nil")225if ("${RUBY_LIB_DIR}" STREQUAL "" OR "${RUBY_LIB_DIR}" STREQUAL "nil")
226 message (STATUS "Could not find ruby libs, won't install Ruby interface.")226 message (STATUS "Could not find ruby libs, won't install Ruby interface.")
227 message (WARNING "This program is required to compile DBus applet with Ruby interface: ruby")227 message (WARNING "This program is required to compile DBus applet with Ruby interface: ruby")
@@ -231,12 +231,12 @@
231 string (REGEX REPLACE "lib/ruby/[0-9].[0-9]" "" RUBY_LIB_DIR_INSTALL "${RUBY_LIB_DIR}")231 string (REGEX REPLACE "lib/ruby/[0-9].[0-9]" "" RUBY_LIB_DIR_INSTALL "${RUBY_LIB_DIR}")
232 string (REGEX REPLACE "${RUBY_LIB_DIR_INSTALL}" "" RUBY_LIB_DIR_INSTALL "${RUBY_LIB_DIR}")232 string (REGEX REPLACE "${RUBY_LIB_DIR_INSTALL}" "" RUBY_LIB_DIR_INSTALL "${RUBY_LIB_DIR}")
233 set (RUBY_LIB_DIR "${CMAKE_INSTALL_PREFIX}/${RUBY_LIB_DIR_INSTALL}")233 set (RUBY_LIB_DIR "${CMAKE_INSTALL_PREFIX}/${RUBY_LIB_DIR_INSTALL}")
234 message (STATUS " will be installed in: ${RUBY_LIB_DIR}")234 message (STATUS " will be installed in: ${RUBY_LIB_DIR}")
235 set (RUBY_FOUND "TRUE")235 set (RUBY_FOUND "TRUE")
236 set (with_ruby "yes")236 set (with_ruby "yes")
237endif()237endif()
238238
239message (STATUS "* Mono:")239message (STATUS " * Mono:")
240#find_package (Mono)240#find_package (Mono)
241find_program (GMCS_EXECUTABLE gmcs)241find_program (GMCS_EXECUTABLE gmcs)
242if ("${GMCS_EXECUTABLE}" STREQUAL "" OR NOT EXISTS ${GMCS_EXECUTABLE})242if ("${GMCS_EXECUTABLE}" STREQUAL "" OR NOT EXISTS ${GMCS_EXECUTABLE})
@@ -255,13 +255,13 @@
255 endif()255 endif()
256endif()256endif()
257257
258message (STATUS "* Vala:")258message (STATUS " * Vala:")
259# Valac is only riquired to convert vala files to C files.259# Valac is only riquired to convert vala files to C files.
260# So we can directly use produced files (c, h, vapi) without using valac.260# So we can directly use produced files (c, h, vapi) without using valac.
261set (with_vala "yes")261set (with_vala "yes")
262set (with_valac "no")262set (with_valac "no")
263find_program (VALAC_EXE valac)263find_program (VALAC_EXE valac)
264message (STATUS "VALAC_EXE: ${VALAC_EXE}")264message (STATUS " Path to valac: ${VALAC_EXE}")
265265
266if ("${WITH_VALA}" STREQUAL "no")266if ("${WITH_VALA}" STREQUAL "no")
267 set (with_vala "no")267 set (with_vala "no")
@@ -273,7 +273,7 @@
273 OUTPUT_VARIABLE "VALA_VERSION")273 OUTPUT_VARIABLE "VALA_VERSION")
274 string(REPLACE "Vala" "" "VALA_VERSION" ${VALA_VERSION})274 string(REPLACE "Vala" "" "VALA_VERSION" ${VALA_VERSION})
275 string(STRIP ${VALA_VERSION} "VALA_VERSION")275 string(STRIP ${VALA_VERSION} "VALA_VERSION")
276 message (STATUS "VALA_VERSION: ${VALA_VERSION}")276 message (STATUS " Vala version: ${VALA_VERSION}")
277277
278 STRING (REGEX REPLACE "\\..*" "" VALA_MAJOR "${VALA_VERSION}")278 STRING (REGEX REPLACE "\\..*" "" VALA_MAJOR "${VALA_VERSION}")
279 # message (STATUS "VALA_MAJOR : ${VALA_MAJOR}")279 # message (STATUS "VALA_MAJOR : ${VALA_MAJOR}")
@@ -288,11 +288,11 @@
288288
289 if (${VALA_MAJOR} GREATER 0 OR ${VALA_MINOR} GREATER 9) # vala >= 0.10 289 if (${VALA_MAJOR} GREATER 0 OR ${VALA_MINOR} GREATER 9) # vala >= 0.10
290 # AND (${VALA_MAJOR} LESS 1 AND ${VALA_MINOR} LESS 13)) # and <= 0.12290 # AND (${VALA_MAJOR} LESS 1 AND ${VALA_MINOR} LESS 13)) # and <= 0.12
291 message (STATUS " Vala compiler OK (>= 0.10).")# and <= 0.12).")291 message (STATUS " Vala compiler OK (>= 0.10).")# and <= 0.12).")
292 set (VALAC_FOUND "TRUE")292 set (VALAC_FOUND "TRUE")
293 set (with_valac "yes")293 set (with_valac "yes")
294 else()294 else()
295 message (STATUS "Vala compiler is too old (0.10 required) or too new (> 0.12), won't build Vala interface.")295 message (STATUS " Vala compiler is too old (0.10 required) or too new (> 0.12), won't build Vala interface.")
296 endif()296 endif()
297else()297else()
298 message (STATUS "Could not find ValaC, won't build Vala interface with the version of your distribution.")298 message (STATUS "Could not find ValaC, won't build Vala interface with the version of your distribution.")
@@ -471,22 +471,20 @@
471471
472############# IMPULSE #################472############# IMPULSE #################
473set (with_impulse "no")473set (with_impulse "no")
474if ("${enable-impulse}" STREQUAL "yes")474message (STATUS "> Impulse:")
475 message (STATUS "> Impulse:")475pkg_check_modules (IMPULSE_PACKAGES libpulse fftw3)
476 pkg_check_modules (IMPULSE_PACKAGES libpulse fftw3)476if ("${IMPULSE_PACKAGES_FOUND}" STREQUAL "")
477 if ("${IMPULSE_PACKAGES_FOUND}" STREQUAL "")477 message (STATUS "Could not find libpulse; Cairo-Dock won't be built with Impulse applet.")
478 message (STATUS "Could not find libpulse; Cairo-Dock won't be built with Impulse applet.")478 message (WARNING "These modules are required to compile Impulse applet: libpulse fftw3")
479 message (WARNING "These modules are required to compile Impulse applet: libpulse fftw3")479 set (MODULES_MISSING "${MODULES_MISSING} libpulse fftw3")
480 set (MODULES_MISSING "${MODULES_MISSING} libpulse fftw3")480else()
481 else()481 set (GETTEXT_IMPULSE ${GETTEXT_PLUGINS})
482 set (GETTEXT_IMPULSE ${GETTEXT_PLUGINS})482 set (VERSION_IMPULSE "0.0.3")
483 set (VERSION_IMPULSE "0.0.3")483 set (PACKAGE_IMPULSE "cd-Impulse")
484 set (PACKAGE_IMPULSE "cd-Impulse")484 set (with_impulse "yes")
485 set (with_impulse "yes")485 set (impulsedatadir "${pluginsdatadir}/Impulse")
486 set (impulsedatadir "${pluginsdatadir}/Impulse")486 configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Impulse/data/Impulse.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Impulse/data/Impulse.conf)
487 configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Impulse/data/Impulse.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Impulse/data/Impulse.conf)487 add_subdirectory (Impulse)
488 add_subdirectory (Impulse)
489 endif()
490endif()488endif()
491489
492############# INDICATOR-APPLET #################490############# INDICATOR-APPLET #################
@@ -507,8 +505,10 @@
507endif()505endif()
508if ("${INDICATOR_04_FOUND}" STREQUAL "1")506if ("${INDICATOR_04_FOUND}" STREQUAL "1")
509 pkg_check_modules (INDICATOR_APPLET indicator-0.4 libido-0.1)507 pkg_check_modules (INDICATOR_APPLET indicator-0.4 libido-0.1)
508 set (INDICATOR_APPLICATIONADDED_HAS_HINT 1) # now the ApplicationAdded signal (Status-Notifier) has a new parameter (hint) => https://code.launchpad.net/~ted/indicator-application/name-hints/+merge/67213
510else()509else()
511 pkg_check_modules (INDICATOR_APPLET indicator libido-0.1)510 pkg_check_modules (INDICATOR_APPLET indicator libido-0.1)
511 set (INDICATOR_APPLICATIONADDED_HAS_HINT 0)
512endif()512endif()
513513
514if ("${INDICATOR_APPLET_FOUND}" STREQUAL "1" AND "${DBUSMENU_FOUND}" STREQUAL "1" AND "${DBUSMENU_GTK_FOUND}" STREQUAL "1")514if ("${INDICATOR_APPLET_FOUND}" STREQUAL "1" AND "${DBUSMENU_FOUND}" STREQUAL "1" AND "${DBUSMENU_GTK_FOUND}" STREQUAL "1")
@@ -601,7 +601,7 @@
601 AND KIO_INCLUDE_DIR601 AND KIO_INCLUDE_DIR
602 AND KIO_LIBRARY602 AND KIO_LIBRARY
603 AND KDE_INCLUDE_DIR)603 AND KDE_INCLUDE_DIR)
604 message (STATUS "KDE: OK")604 message (STATUS " KDE: OK")
605 set (VERSION_KDE_INTEGRATION "0.0.3")605 set (VERSION_KDE_INTEGRATION "0.0.3")
606 set (PACKAGE_KDE_INTEGRATION "cd_kde-integration")606 set (PACKAGE_KDE_INTEGRATION "cd_kde-integration")
607 set (with_kde_integration2 "yes")607 set (with_kde_integration2 "yes")
@@ -614,7 +614,7 @@
614 endif()614 endif()
615elseif (NOT "${enable-kde-integration}" STREQUAL "no")615elseif (NOT "${enable-kde-integration}" STREQUAL "no")
616 pkg_check_modules (KDE_INTEGRATION gio-2.0)616 pkg_check_modules (KDE_INTEGRATION gio-2.0)
617 message (STATUS "KDE_INTEGRATION_FOUND: ${KDE_INTEGRATION_FOUND}")617 message (STATUS " KDE_INTEGRATION_FOUND: ${KDE_INTEGRATION_FOUND}")
618 if (NOT KDE_INTEGRATION_FOUND)618 if (NOT KDE_INTEGRATION_FOUND)
619 message (STATUS "Could not find gio; Cairo-Dock won't be built with KDE support.")619 message (STATUS "Could not find gio; Cairo-Dock won't be built with KDE support.")
620 message (STATUS "This module is required to compile KDE-Integration applet: gio-2.0")620 message (STATUS "This module is required to compile KDE-Integration applet: gio-2.0")
@@ -698,10 +698,10 @@
698 message (WARNING "This module is required to compile Mail applet: libetpan")698 message (WARNING "This module is required to compile Mail applet: libetpan")
699 set (PROGRAMS_MISSING "${PROGRAMS_MISSING} libetpan-config")699 set (PROGRAMS_MISSING "${PROGRAMS_MISSING} libetpan-config")
700else()700else()
701 message (STATUS "libetpan found. Using the following options:")701 message (STATUS " libetpan found. Using the following options:")
702 message (STATUS " Include directories: ${MAIL_PACKAGE_INCLUDE_DIRS}")702 message (STATUS " Include directories: ${MAIL_PACKAGE_INCLUDE_DIRS}")
703 message (STATUS " Link directories: ${MAIL_PACKAGE_LIBRARY_DIRS}")703 message (STATUS " Link directories: ${MAIL_PACKAGE_LIBRARY_DIRS}")
704 message (STATUS " Link libraries: ${MAIL_PACKAGE_LIBRARIES}")704 message (STATUS " Link libraries: ${MAIL_PACKAGE_LIBRARIES}")
705 set (GETTEXT_MAIL ${GETTEXT_PLUGINS})705 set (GETTEXT_MAIL ${GETTEXT_PLUGINS})
706 set (VERSION_MAIL "1.0.9")706 set (VERSION_MAIL "1.0.9")
707 set (PACKAGE_MAIL "cd-mail")707 set (PACKAGE_MAIL "cd-mail")
@@ -751,7 +751,7 @@
751endif()751endif()
752752
753if (NOT "${DISTRO_ID}" STREQUAL "")753if (NOT "${DISTRO_ID}" STREQUAL "")
754 message (STATUS "DISTRO_ID: ${DISTRO_ID}, DISTRO_RELEASE: ${DISTRO_RELEASE}")754 message (STATUS " DISTRO_ID: ${DISTRO_ID}, DISTRO_RELEASE: ${DISTRO_RELEASE}")
755endif()755endif()
756756
757############# INDICATOR_NAME #################757############# INDICATOR_NAME #################
@@ -759,19 +759,21 @@
759set (INDICATOR_OLD_NAMES 0)759set (INDICATOR_OLD_NAMES 0)
760if ("${force_old_indicator_names}" STREQUAL "yes")760if ("${force_old_indicator_names}" STREQUAL "yes")
761 set (INDICATOR_OLD_NAMES 1)761 set (INDICATOR_OLD_NAMES 1)
762 message (STATUS "Indicators: use old Ayatana Dbus names (forced)")762 message (STATUS " Indicators: use old Ayatana Dbus names (forced)")
763elseif ("${DISTRO_ID}" STREQUAL "Ubuntu")763elseif ("${DISTRO_ID}" STREQUAL "Ubuntu")
764 STRING (REGEX REPLACE "\\..*" "" DISTRO_RELEASE_MAJOR ${DISTRO_RELEASE})764 STRING (REGEX REPLACE "\\..*" "" DISTRO_RELEASE_MAJOR ${DISTRO_RELEASE})
765 # message (STATUS "DISTRO_RELEASE_MAJOR: ${DISTRO_RELEASE_MAJOR}")765 # message (STATUS "DISTRO_RELEASE_MAJOR: ${DISTRO_RELEASE_MAJOR}")
766 if (${DISTRO_RELEASE_MAJOR} LESS 11) # from 11.04, new names are used.766 if (${DISTRO_RELEASE_MAJOR} LESS 11) # from 11.04, new names are used.
767 set (INDICATOR_OLD_NAMES 1)767 set (INDICATOR_OLD_NAMES 1)
768 message (STATUS "Indicators: use old Ayatana Dbus names")768 message (STATUS " Indicators: use old Ayatana Dbus names")
769 endif()769 endif()
770endif()770endif()
771771
772############# MEMENU #################772############# MEMENU #################
773set (with_me_menu "no")773set (with_me_menu "no")
774if ("${with_indicator}" STREQUAL "yes")774if ("${INDICATOR_04_FOUND}" STREQUAL "1")
775 message (STATUS "> MeMenu: this applet has been automatically merged with Messaging-Menu")
776elseif ("${with_indicator}" STREQUAL "yes")
775 message (STATUS "> MeMenu:")777 message (STATUS "> MeMenu:")
776 set (GETTEXT_MEMENU ${GETTEXT_PLUGINS})778 set (GETTEXT_MEMENU ${GETTEXT_PLUGINS})
777 set (VERSION_MEMENU "1.0.2")779 set (VERSION_MEMENU "1.0.2")
@@ -784,7 +786,7 @@
784786
785############# MESSAGING_MENU #################787############# MESSAGING_MENU #################
786set (with_messaging_menu "no")788set (with_messaging_menu "no")
787if ("${with_indicator}" STREQUAL "yes")789if ("${with_indicator}" STREQUAL "yes")
788 message (STATUS "> Messaging-Menu:")790 message (STATUS "> Messaging-Menu:")
789 set (GETTEXT_MESSAGING_MENU ${GETTEXT_PLUGINS})791 set (GETTEXT_MESSAGING_MENU ${GETTEXT_PLUGINS})
790 set (VERSION_MESSAGING_MENU "1.0.2")792 set (VERSION_MESSAGING_MENU "1.0.2")
@@ -807,7 +809,7 @@
807############# MUSICPLAYER #################809############# MUSICPLAYER #################
808message (STATUS "> MusicPlayer:")810message (STATUS "> MusicPlayer:")
809set (GETTEXT_MUSICPLAYER ${GETTEXT_PLUGINS})811set (GETTEXT_MUSICPLAYER ${GETTEXT_PLUGINS})
810set (VERSION_MUSICPLAYER "1.0.8")812set (VERSION_MUSICPLAYER "1.1.0")
811set (PACKAGE_MUSICPLAYER "cd-musicPlayer")813set (PACKAGE_MUSICPLAYER "cd-musicPlayer")
812set (musicplayerdatadir "${pluginsdatadir}/musicPlayer")814set (musicplayerdatadir "${pluginsdatadir}/musicPlayer")
813configure_file (${CMAKE_CURRENT_SOURCE_DIR}/musicPlayer/data/musicPlayer.conf.in ${CMAKE_CURRENT_BINARY_DIR}/musicPlayer/data/musicPlayer.conf)815configure_file (${CMAKE_CURRENT_SOURCE_DIR}/musicPlayer/data/musicPlayer.conf.in ${CMAKE_CURRENT_BINARY_DIR}/musicPlayer/data/musicPlayer.conf)
@@ -816,7 +818,7 @@
816############# NETSPEED #################818############# NETSPEED #################
817message (STATUS "> NetSpeed:")819message (STATUS "> NetSpeed:")
818set (GETTEXT_NETSPEED ${GETTEXT_PLUGINS})820set (GETTEXT_NETSPEED ${GETTEXT_PLUGINS})
819set (VERSION_NETSPEED "1.2.6")821set (VERSION_NETSPEED "1.2.7")
820set (PACKAGE_NETSPEED "cd-netspeed")822set (PACKAGE_NETSPEED "cd-netspeed")
821set (netspeeddatadir "${pluginsdatadir}/netspeed")823set (netspeeddatadir "${pluginsdatadir}/netspeed")
822configure_file (${CMAKE_CURRENT_SOURCE_DIR}/netspeed/data/netspeed.conf.in ${CMAKE_CURRENT_BINARY_DIR}/netspeed/data/netspeed.conf)824configure_file (${CMAKE_CURRENT_SOURCE_DIR}/netspeed/data/netspeed.conf.in ${CMAKE_CURRENT_BINARY_DIR}/netspeed/data/netspeed.conf)
@@ -827,7 +829,7 @@
827if ("${enable-network-monitor}" STREQUAL "yes")829if ("${enable-network-monitor}" STREQUAL "yes")
828 message (STATUS "> Network Monitor:")830 message (STATUS "> Network Monitor:")
829 set (GETTEXT_NETWORK_MONITOR ${GETTEXT_PLUGINS})831 set (GETTEXT_NETWORK_MONITOR ${GETTEXT_PLUGINS})
830 set (VERSION_NETWORK_MONITOR "0.2.4")832 set (VERSION_NETWORK_MONITOR "0.2.5")
831 set (PACKAGE_NETWORK_MONITOR "cd-network-monitor")833 set (PACKAGE_NETWORK_MONITOR "cd-network-monitor")
832 set (with_network_monitor "yes")834 set (with_network_monitor "yes")
833 set (network_monitordatadir "${pluginsdatadir}/Network-Monitor")835 set (network_monitordatadir "${pluginsdatadir}/Network-Monitor")
@@ -838,7 +840,7 @@
838############# POWERMANAGER #################840############# POWERMANAGER #################
839message (STATUS "> PowerManager:")841message (STATUS "> PowerManager:")
840set (GETTEXT_POWERMANAGER ${GETTEXT_PLUGINS})842set (GETTEXT_POWERMANAGER ${GETTEXT_PLUGINS})
841set (VERSION_POWERMANAGER "1.3.5")843set (VERSION_POWERMANAGER "1.3.7")
842set (PACKAGE_POWERMANAGER "cd-powermanager")844set (PACKAGE_POWERMANAGER "cd-powermanager")
843set (powermanagerdatadir "${pluginsdatadir}/powermanager")845set (powermanagerdatadir "${pluginsdatadir}/powermanager")
844configure_file (${CMAKE_CURRENT_SOURCE_DIR}/powermanager/data/powermanager.conf.in ${CMAKE_CURRENT_BINARY_DIR}/powermanager/data/powermanager.conf)846configure_file (${CMAKE_CURRENT_SOURCE_DIR}/powermanager/data/powermanager.conf.in ${CMAKE_CURRENT_BINARY_DIR}/powermanager/data/powermanager.conf)
@@ -952,7 +954,7 @@
952 set (with_exif "no")954 set (with_exif "no")
953endif()955endif()
954set (GETTEXT_SLIDER ${GETTEXT_PLUGINS})956set (GETTEXT_SLIDER ${GETTEXT_PLUGINS})
955set (VERSION_SLIDER "2.0.9")957set (VERSION_SLIDER "2.0.10")
956set (PACKAGE_SLIDER "cd-slider")958set (PACKAGE_SLIDER "cd-slider")
957set (sliderdatadir "${pluginsdatadir}/slider")959set (sliderdatadir "${pluginsdatadir}/slider")
958configure_file (${CMAKE_CURRENT_SOURCE_DIR}/slider/data/slider.conf.in ${CMAKE_CURRENT_BINARY_DIR}/slider/data/slider.conf)960configure_file (${CMAKE_CURRENT_SOURCE_DIR}/slider/data/slider.conf.in ${CMAKE_CURRENT_BINARY_DIR}/slider/data/slider.conf)
@@ -975,6 +977,12 @@
975 # set (MODULES_MISSING "${MODULES_MISSING} dbusmenu-gtk(-0.4)") # it should already be in the list.977 # set (MODULES_MISSING "${MODULES_MISSING} dbusmenu-gtk(-0.4)") # it should already be in the list.
976 set (with_status_notifier "no")978 set (with_status_notifier "no")
977else()979else()
980 if ("${force_indicator_applicationadded_have_hint}" STREQUAL "yes")
981 set (INDICATOR_APPLICATIONADDED_HAS_HINT 1)
982 elseif ("${force_indicator_applicationadded_have_hint}" STREQUAL "no")
983 set (INDICATOR_APPLICATIONADDED_HAS_HINT 0)
984 endif()
985 message (STATUS " ApplicationAdded signal has 'Hint' = ${INDICATOR_APPLICATIONADDED_HAS_HINT}")
978 set (GETTEXT_STATUS_NOTIFIER ${GETTEXT_PLUGINS})986 set (GETTEXT_STATUS_NOTIFIER ${GETTEXT_PLUGINS})
979 set (VERSION_STATUS_NOTIFIER "0.1.4")987 set (VERSION_STATUS_NOTIFIER "0.1.4")
980 set (PACKAGE_STATUS_NOTIFIER "cd-status-notifier")988 set (PACKAGE_STATUS_NOTIFIER "cd-status-notifier")
@@ -1004,7 +1012,7 @@
1004 set (with_sensors "no")1012 set (with_sensors "no")
1005endif()1013endif()
1006set (GETTEXT_SYSTEM_MONITOR ${GETTEXT_PLUGINS})1014set (GETTEXT_SYSTEM_MONITOR ${GETTEXT_PLUGINS})
1007set (VERSION_SYSTEM_MONITOR "1.0.7")1015set (VERSION_SYSTEM_MONITOR "1.0.9")
1008set (PACKAGE_SYSTEM_MONITOR "cd-system-monitor")1016set (PACKAGE_SYSTEM_MONITOR "cd-system-monitor")
1009set (system_monitordatadir "${pluginsdatadir}/System-monitor")1017set (system_monitordatadir "${pluginsdatadir}/System-monitor")
1010configure_file (${CMAKE_CURRENT_SOURCE_DIR}/System-Monitor/data/System-Monitor.conf.in ${CMAKE_CURRENT_BINARY_DIR}/System-Monitor/data/System-Monitor.conf)1018configure_file (${CMAKE_CURRENT_SOURCE_DIR}/System-Monitor/data/System-Monitor.conf.in ${CMAKE_CURRENT_BINARY_DIR}/System-Monitor/data/System-Monitor.conf)
@@ -1049,7 +1057,7 @@
1049############# TOONS #################1057############# TOONS #################
1050message (STATUS "> Toons:")1058message (STATUS "> Toons:")
1051set (GETTEXT_TOONS ${GETTEXT_PLUGINS})1059set (GETTEXT_TOONS ${GETTEXT_PLUGINS})
1052set (VERSION_TOONS "1.0.9")1060set (VERSION_TOONS "1.0.10")
1053set (PACKAGE_TOONS "cd-Toons")1061set (PACKAGE_TOONS "cd-Toons")
1054set (toonsdatadir "${pluginsdatadir}/Toons")1062set (toonsdatadir "${pluginsdatadir}/Toons")
1055set (toonsuserdirname "Toons")1063set (toonsuserdirname "Toons")
@@ -1089,7 +1097,7 @@
1089############# WIFI #################1097############# WIFI #################
1090message (STATUS "> WiFi:")1098message (STATUS "> WiFi:")
1091set (GETTEXT_WIFI ${GETTEXT_PLUGINS})1099set (GETTEXT_WIFI ${GETTEXT_PLUGINS})
1092set (VERSION_WIFI "1.2.7")1100set (VERSION_WIFI "1.2.9")
1093set (PACKAGE_WIFI "cd-wifi")1101set (PACKAGE_WIFI "cd-wifi")
1094set (wifidatadir "${pluginsdatadir}/wifi")1102set (wifidatadir "${pluginsdatadir}/wifi")
1095configure_file (${CMAKE_CURRENT_SOURCE_DIR}/wifi/data/wifi.conf.in ${CMAKE_CURRENT_BINARY_DIR}/wifi/data/wifi.conf)1103configure_file (${CMAKE_CURRENT_SOURCE_DIR}/wifi/data/wifi.conf.in ${CMAKE_CURRENT_BINARY_DIR}/wifi/data/wifi.conf)
@@ -1145,15 +1153,20 @@
1145message (STATUS "===============")1153message (STATUS "===============")
1146message ("")1154message ("")
1147message (STATUS "Stable:")1155message (STATUS "Stable:")
1156message (STATUS " Integration plug-ins:")
1157message (STATUS " - with Gnome support: ${with_gnome_integration}")
1158message (STATUS " - with KDE support: ${with_kde_integration}")
1159message (STATUS " - with XFCE support: ${with_xfce_integration}")
1160message (STATUS " Plug-ins:")
1148message (STATUS " - with Alsa-Mixer applet: ${with_alsa}")1161message (STATUS " - with Alsa-Mixer applet: ${with_alsa}")
1149message (STATUS " - with iCal support: ${with_ical}")1162message (STATUS " - with iCal support: ${with_ical}")
1150message (STATUS " - with GMenu applet: ${with_gmenu}")1163message (STATUS " - with GMenu applet: ${with_gmenu}")
1151message (STATUS " - with Gnome support: ${with_gnome_integration}")1164message (STATUS " - with Impulse applet: ${with_impulse}")
1152message (STATUS " - with KDE support: ${with_kde_integration}")
1153message (STATUS " - with XFCE support: ${with_xfce_integration}")
1154message (STATUS " - with Keyboard-indicator applet: ${with_keyboard_indicator}")1165message (STATUS " - with Keyboard-indicator applet: ${with_keyboard_indicator}")
1155message (STATUS " - with Mail applet: ${with_mail}")1166message (STATUS " - with Mail applet: ${with_mail}")
1167if (NOT "${INDICATOR_04_FOUND}" STREQUAL "1")
1156message (STATUS " - with Me-Menu applet: ${with_me_menu}")1168message (STATUS " - with Me-Menu applet: ${with_me_menu}")
1169endif()
1157message (STATUS " - with Messaging-Menu: ${with_messaging_menu}")1170message (STATUS " - with Messaging-Menu: ${with_messaging_menu}")
1158message (STATUS " - with Screen Resolution support: ${with_xrandr}")1171message (STATUS " - with Screen Resolution support: ${with_xrandr}")
1159message (STATUS " - with Status-Notifier applet: ${with_status_notifier}")1172message (STATUS " - with Status-Notifier applet: ${with_status_notifier}")
@@ -1171,7 +1184,6 @@
1171message (STATUS "Unstable:")1184message (STATUS "Unstable:")
1172message (STATUS " - with Disks applet: ${with_disks}")1185message (STATUS " - with Disks applet: ${with_disks}")
1173message (STATUS " - with Doncky applet: ${with_doncky}")1186message (STATUS " - with Doncky applet: ${with_doncky}")
1174message (STATUS " - with Impulse applet: ${with_impulse}")
1175message (STATUS " - with KDE experimental support: ${with_kde_integration2}")1187message (STATUS " - with KDE experimental support: ${with_kde_integration2}")
1176message (STATUS " - with Network-Monitor applet: ${with_network_monitor}")1188message (STATUS " - with Network-Monitor applet: ${with_network_monitor}")
1177message (STATUS " - with Scooby-Do applet: ${with_scooby_do}")1189message (STATUS " - with Scooby-Do applet: ${with_scooby_do}")
11781190
=== modified file 'Cairo-Penguin/src/applet-animation.c'
--- Cairo-Penguin/src/applet-animation.c 2011-04-20 20:46:51 +0000
+++ Cairo-Penguin/src/applet-animation.c 2011-10-08 22:23:24 +0000
@@ -89,7 +89,7 @@
89{89{
90 g_return_if_fail (pAnimation->iTexture != 0);90 g_return_if_fail (pAnimation->iTexture != 0);
91 int iIconWidth, iIconHeight;91 int iIconWidth, iIconHeight;
92 cairo_dock_get_icon_extent (myIcon, myContainer, &iIconWidth, &iIconHeight);92 CD_APPLET_GET_MY_ICON_EXTENT (&iIconWidth, &iIconHeight);
93 93
94 _cairo_dock_enable_texture ();94 _cairo_dock_enable_texture ();
95 _cairo_dock_set_blend_alpha ();95 _cairo_dock_set_blend_alpha ();
@@ -198,7 +198,7 @@
198 CD_APPLET_START_DRAWING_MY_ICON_OR_RETURN ();198 CD_APPLET_START_DRAWING_MY_ICON_OR_RETURN ();
199 199
200 int iIconWidth, iIconHeight;200 int iIconWidth, iIconHeight;
201 cairo_dock_get_icon_extent (myIcon, myContainer, &iIconWidth, &iIconHeight);201 CD_APPLET_GET_MY_ICON_EXTENT (&iIconWidth, &iIconHeight);
202 202
203 g_return_if_fail (pAnimation->iTexture != 0);203 g_return_if_fail (pAnimation->iTexture != 0);
204 double f = (1 + myIconsParam.fAmplitude) / fScale;204 double f = (1 + myIconsParam.fAmplitude) / fScale;
205205
=== modified file 'Clipper/data/Clipper.conf.in'
--- Clipper/data/Clipper.conf.in 2011-08-09 18:08:08 +0000
+++ Clipper/data/Clipper.conf.in 2011-10-08 22:23:24 +0000
@@ -16,7 +16,7 @@
1616
17#S+ Image filename:17#S+ Image filename:
18#{Leave empty to use the default one.}18#{Leave empty to use the default one.}
19icon=accessories-text-editor.svg19icon=accessories-text-editor
2020
21#j+[0;128] Desired icon size for this applet21#j+[0;128] Desired icon size for this applet
22#{Set to 0 to use the default applet size}22#{Set to 0 to use the default applet size}
@@ -60,7 +60,7 @@
60#b Is detached from the dock60#b Is detached from the dock
61initially detached=false61initially detached=false
62#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:62#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:
63#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=utility)}63#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=Utility)}
64accessibility=064accessibility=0
65#b Should be visible on all desktops?65#b Should be visible on all desktops?
66sticky=true66sticky=true
6767
=== modified file 'Clipper/src/applet-clipboard.c'
--- Clipper/src/applet-clipboard.c 2011-08-09 18:08:08 +0000
+++ Clipper/src/applet-clipboard.c 2011-10-08 22:23:24 +0000
@@ -25,6 +25,8 @@
2525
26const gchar *cEnvName[4] = {"other", "gnome", "kde", "xfce"}; // "other" allows to handle all the other DE (put your own actions into the corresponding file).26const gchar *cEnvName[4] = {"other", "gnome", "kde", "xfce"}; // "other" allows to handle all the other DE (put your own actions into the corresponding file).
2727
28// TODO idea: cairo_dock_cut_string => g_strstrip + cut X first char, then add '...', then the X last char + removed '\n'
29
28static int _cd_clipper_compare_item (CDClipperItem *pItem1, CDClipperItem *pItem2)30static int _cd_clipper_compare_item (CDClipperItem *pItem1, CDClipperItem *pItem2)
29{31{
30 if (pItem1->iType < pItem2->iType) // on insere en 1er les items de la primary.32 if (pItem1->iType < pItem2->iType) // on insere en 1er les items de la primary.
@@ -35,7 +37,7 @@
35 return 0;37 return 0;
36}38}
3739
38static GList *_cd_clipper_get_last_item (CDClipperItemType iItemType)40GList *cd_clipper_get_last_item (CDClipperItemType iItemType)
39{41{
40 CDClipperItem *pItem = NULL;42 CDClipperItem *pItem = NULL;
41 GList *pElement;43 GList *pElement;
@@ -136,10 +138,10 @@
136 myData.pItems = g_list_delete_link (myData.pItems, pElement);138 myData.pItems = g_list_delete_link (myData.pItems, pElement);
137 myData.iNbItems[pItem->iType] --;139 myData.iNbItems[pItem->iType] --;
138 140
139 if (pItem->iType != iType && myData.iNbItems[iType] == myConfig.iNbItems[iType])141 if (pItem->iType != iType && myData.iNbItems[iType] >= myConfig.iNbItems[iType])
140 {142 {
141 cd_debug ("Clipper : %s remplace le dernier de l'autre selection", text);143 cd_debug ("Clipper : %s remplace le dernier de l'autre selection", text);
142 pElement = _cd_clipper_get_last_item (iType);144 pElement = cd_clipper_get_last_item (iType);
143 CD_APPLET_LEAVE_IF_FAIL (pElement != NULL);145 CD_APPLET_LEAVE_IF_FAIL (pElement != NULL);
144 cd_clipper_free_item (pElement->data);146 cd_clipper_free_item (pElement->data);
145 myData.pItems = g_list_delete_link (myData.pItems, pElement);147 myData.pItems = g_list_delete_link (myData.pItems, pElement);
@@ -152,10 +154,10 @@
152 {154 {
153 bExistingItem = FALSE;155 bExistingItem = FALSE;
154 cd_debug ("%d items / %d", myData.iNbItems[iType], myConfig.iNbItems[iType]);156 cd_debug ("%d items / %d", myData.iNbItems[iType], myConfig.iNbItems[iType]);
155 if (myData.iNbItems[iType] == myConfig.iNbItems[iType])157 if (myData.iNbItems[iType] >= myConfig.iNbItems[iType])
156 {158 {
157 cd_debug ("Clipper : %s remplace le dernier", text);159 cd_debug ("Clipper : %s remplace le dernier", text);
158 pElement = _cd_clipper_get_last_item (iType);160 pElement = cd_clipper_get_last_item (iType);
159 CD_APPLET_LEAVE_IF_FAIL (pElement != NULL);161 CD_APPLET_LEAVE_IF_FAIL (pElement != NULL);
160 cd_clipper_free_item (pElement->data);162 cd_clipper_free_item (pElement->data);
161 myData.pItems = g_list_delete_link (myData.pItems, pElement);163 myData.pItems = g_list_delete_link (myData.pItems, pElement);
@@ -168,7 +170,7 @@
168 pItem = g_new0 (CDClipperItem, 1);170 pItem = g_new0 (CDClipperItem, 1);
169 pItem->iType = iType;171 pItem->iType = iType;
170 pItem->cText = g_strdup (text);172 pItem->cText = g_strdup (text);
171 pItem->cDisplayedText = cairo_dock_cut_string (text, 50);173 pItem->cDisplayedText = cairo_dock_cut_string (g_strstrip (g_strdup (text)), 50); // g_strstrip: Removes leading and trailing whitespace from a string
172 }174 }
173 myData.pItems = g_list_insert_sorted (myData.pItems, pItem, (GCompareFunc)_cd_clipper_compare_item);175 myData.pItems = g_list_insert_sorted (myData.pItems, pItem, (GCompareFunc)_cd_clipper_compare_item);
174 myData.iNbItems[pItem->iType] ++;176 myData.iNbItems[pItem->iType] ++;
@@ -613,16 +615,20 @@
613void cd_clipper_load_items (const gchar *cItems)615void cd_clipper_load_items (const gchar *cItems)
614{616{
615 CDClipperItem *pItem;617 CDClipperItem *pItem;
618 int iClipperItemType = myConfig.bSeparateSelections ? CD_CLIPPER_CLIPBOARD : CD_CLIPPER_BOTH;
616 gchar **cItemList = g_strsplit (cItems, CD_ITEMS_DELIMITER, -1);619 gchar **cItemList = g_strsplit (cItems, CD_ITEMS_DELIMITER, -1);
617 int i;620 int i;
618 for (i = 0; cItemList[i] != NULL; i ++)621 for (i = 0; cItemList[i] != NULL; i ++)
619 {622 {
623 // if we have reduced the number of items to display
624 if (i == myConfig.iNbItems[iClipperItemType])
625 break;
620 pItem = g_new0 (CDClipperItem, 1);626 pItem = g_new0 (CDClipperItem, 1);
621 pItem->iType = CD_CLIPPER_CLIPBOARD;627 pItem->iType = iClipperItemType;
622 pItem->cText = cItemList[i];628 pItem->cText = cItemList[i];
623 pItem->cDisplayedText = cairo_dock_cut_string (pItem->cText, 50);629 pItem->cDisplayedText = cairo_dock_cut_string (g_strstrip (pItem->cText), 50); // g_strstrip: Removes leading and trailing whitespace from a string
624 myData.pItems = g_list_insert_sorted (myData.pItems, pItem, (GCompareFunc)_cd_clipper_compare_item);630 myData.pItems = g_list_insert_sorted (myData.pItems, pItem, (GCompareFunc)_cd_clipper_compare_item);
625 myData.iNbItems[pItem->iType] ++;631 myData.iNbItems[iClipperItemType] ++;
626 }632 }
627 g_free (cItemList);633 g_free (cItemList);
628}634}
629635
=== modified file 'Clipper/src/applet-clipboard.h'
--- Clipper/src/applet-clipboard.h 2010-08-10 00:05:57 +0000
+++ Clipper/src/applet-clipboard.h 2011-10-08 22:23:24 +0000
@@ -25,6 +25,7 @@
25#include <cairo-dock.h>25#include <cairo-dock.h>
26#include "applet-struct.h"26#include "applet-struct.h"
2727
28GList *cd_clipper_get_last_item (CDClipperItemType iItemType);
2829
29void _on_text_received (GtkClipboard *pClipBoard, const gchar *text, gpointer user_data); // temporairement declaree ici.30void _on_text_received (GtkClipboard *pClipBoard, const gchar *text, gpointer user_data); // temporairement declaree ici.
3031
3132
=== modified file 'Clipper/src/applet-init.c'
--- Clipper/src/applet-init.c 2010-09-07 02:38:17 +0000
+++ Clipper/src/applet-init.c 2011-10-08 22:23:24 +0000
@@ -166,5 +166,19 @@
166 g_free (myConfig.cRememberedItems);166 g_free (myConfig.cRememberedItems);
167 myConfig.cRememberedItems = NULL;167 myConfig.cRememberedItems = NULL;
168 }168 }
169 // if myConfig.iNbItems[X] has decreased...
170 int i;
171 for (i = 0; i < 4; i++)
172 {
173 while (myData.iNbItems[i] > myConfig.iNbItems[i])
174 {
175 GList *pElement = cd_clipper_get_last_item (i);
176 if (pElement == NULL)
177 continue;
178 cd_clipper_free_item (pElement->data);
179 myData.pItems = g_list_delete_link (myData.pItems, pElement);
180 myData.iNbItems[i] --;
181 }
182 }
169 }183 }
170CD_APPLET_RELOAD_END184CD_APPLET_RELOAD_END
171185
=== modified file 'Composite-Manager/data/Composite-Manager.conf.in'
--- Composite-Manager/data/Composite-Manager.conf.in 2011-08-09 18:08:08 +0000
+++ Composite-Manager/data/Composite-Manager.conf.in 2011-10-08 22:23:24 +0000
@@ -58,7 +58,7 @@
58#b Is detached from the dock58#b Is detached from the dock
59initially detached=false59initially detached=false
60#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:60#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:
61#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=utility)}61#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=Utility)}
62accessibility=062accessibility=0
63#b Should be visible on all desktops?63#b Should be visible on all desktops?
64sticky=true64sticky=true
6565
=== modified file 'Composite-Manager/src/applet-composite-manager.c'
--- Composite-Manager/src/applet-composite-manager.c 2011-08-09 18:08:08 +0000
+++ Composite-Manager/src/applet-composite-manager.c 2011-10-08 22:23:24 +0000
@@ -171,7 +171,7 @@
171171
172static CDWM *_get_prefered_wmc (CDWMIndex iCurrentWm)172static CDWM *_get_prefered_wmc (CDWMIndex iCurrentWm)
173{173{
174 g_print ("%s (%s, %d)\n", __func__, myConfig.cWmCompositor, iCurrentWm);174 cd_debug ("%s (%s, %d)", __func__, myConfig.cWmCompositor, iCurrentWm);
175 CDWM *wm;175 CDWM *wm;
176 if (myConfig.cWmCompositor != NULL) // a composite WM is defined.176 if (myConfig.cWmCompositor != NULL) // a composite WM is defined.
177 {177 {
@@ -218,7 +218,7 @@
218 for (i = 0; i < NB_COMPOSITE_WM; i ++)218 for (i = 0; i < NB_COMPOSITE_WM; i ++)
219 {219 {
220 wm = _get_wm_by_index (index[i]);220 wm = _get_wm_by_index (index[i]);
221 g_print (" %d) %s, %d\n", index[i], wm->cName, wm->bIsAvailable);221 cd_debug (" %d) %s, %d", index[i], wm->cName, wm->bIsAvailable);
222 if (wm->bIsAvailable)222 if (wm->bIsAvailable)
223 return wm;223 return wm;
224 }224 }
@@ -227,7 +227,7 @@
227227
228static CDWM *_get_prefered_wmfb (CDWMIndex iCurrentWm)228static CDWM *_get_prefered_wmfb (CDWMIndex iCurrentWm)
229{229{
230 g_print ("%s (%s, %d)\n", __func__, myConfig.cWmFallback, iCurrentWm);230 cd_debug ("%s (%s, %d)", __func__, myConfig.cWmFallback, iCurrentWm);
231 CDWM *wm;231 CDWM *wm;
232 if (myConfig.cWmFallback != NULL) // a fallback WM is defined.232 if (myConfig.cWmFallback != NULL) // a fallback WM is defined.
233 {233 {
@@ -249,7 +249,7 @@
249 if (!myData.bIsComposited) // and it is a fallback => let's take it!249 if (!myData.bIsComposited) // and it is a fallback => let's take it!
250 {250 {
251 wm = _get_wm_by_index (iCurrentWm);251 wm = _get_wm_by_index (iCurrentWm);
252 g_print ("current wm: %d, %d\n", iCurrentWm, wm->bIsAvailable);252 cd_debug ("current wm: %d, %d", iCurrentWm, wm->bIsAvailable);
253 if (wm->bIsAvailable) // just to be sure.253 if (wm->bIsAvailable) // just to be sure.
254 return wm;254 return wm;
255 }255 }
@@ -277,7 +277,7 @@
277 for (i = 0; i < NB_FALLBACK_WM; i ++)277 for (i = 0; i < NB_FALLBACK_WM; i ++)
278 {278 {
279 wm = _get_wm_by_index (index[i]);279 wm = _get_wm_by_index (index[i]);
280 g_print (" %s (%d)\n", wm->cName, wm->bIsAvailable);280 cd_debug (" %s (%d)", wm->cName, wm->bIsAvailable);
281 if (wm->bIsAvailable)281 if (wm->bIsAvailable)
282 return wm;282 return wm;
283 }283 }
@@ -294,7 +294,7 @@
294 CDWMIndex iCurrentWm = _check_current_wm (cPs);294 CDWMIndex iCurrentWm = _check_current_wm (cPs);
295 myData.wmc = _get_prefered_wmc (iCurrentWm);295 myData.wmc = _get_prefered_wmc (iCurrentWm);
296 myData.wmfb = _get_prefered_wmfb (iCurrentWm);296 myData.wmfb = _get_prefered_wmfb (iCurrentWm);
297 g_print ("***** WM: %s / %s\n", myData.wmc?myData.wmc->cName:NULL, myData.wmfb?myData.wmfb->cName:NULL);297 cd_debug ("***** WM: %s / %s", myData.wmc?myData.wmc->cName:NULL, myData.wmfb?myData.wmfb->cName:NULL);
298}298}
299void cd_define_prefered_wms (void)299void cd_define_prefered_wms (void)
300{300{
@@ -369,7 +369,7 @@
369369
370void cd_draw_current_state (void)370void cd_draw_current_state (void)
371{371{
372 g_print ("%s (%d)\n", __func__, myData.bIsComposited);372 cd_debug ("%s (%d)", __func__, myData.bIsComposited);
373 if (myData.bIsComposited)373 if (myData.bIsComposited)
374 CD_APPLET_SET_USER_IMAGE_ON_MY_ICON (myConfig.cIconCompositeON, "composite-on.png");374 CD_APPLET_SET_USER_IMAGE_ON_MY_ICON (myConfig.cIconCompositeON, "composite-on.png");
375 else375 else
376376
=== modified file 'Dbus/demos/demo_bash/demo_bash.conf'
--- Dbus/demos/demo_bash/demo_bash.conf 2011-04-20 20:46:51 +0000
+++ Dbus/demos/demo_bash/demo_bash.conf 2011-10-08 22:23:24 +0000
@@ -39,7 +39,7 @@
39#b Is detached from the dock ?39#b Is detached from the dock ?
40initially detached=false40initially detached=false
41#l[Normal;Keep above;Keep below;On Widget Layer;Reserve space] Accessibility :41#l[Normal;Keep above;Keep below;On Widget Layer;Reserve space] Accessibility :
42#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=utility)}42#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=Utility)}
43accessibility=043accessibility=0
44#b Should be visible on all desktops ?44#b Should be visible on all desktops ?
45sticky=true45sticky=true
4646
=== modified file 'Dbus/demos/demo_mono/auto-load.conf'
--- Dbus/demos/demo_mono/auto-load.conf 2010-08-10 00:05:57 +0000
+++ Dbus/demos/demo_mono/auto-load.conf 2011-10-08 22:23:24 +0000
@@ -10,4 +10,4 @@
10category = 510category = 5
1111
12# Version of the applet; change it everytime you change something in the config file. Don't forget to update the version both in this file and in the config file.12# Version of the applet; change it everytime you change something in the config file. Don't forget to update the version both in this file and in the config file.
13version = 0.0.213version = 0.0.3
1414
=== modified file 'Dbus/demos/demo_mono/demo_mono.conf'
--- Dbus/demos/demo_mono/demo_mono.conf 2011-04-20 20:46:51 +0000
+++ Dbus/demos/demo_mono/demo_mono.conf 2011-10-08 22:23:24 +0000
@@ -1,4 +1,4 @@
1#!en;0.0.21#!en;0.0.3
22
3#[gtk-about]3#[gtk-about]
4[Icon]4[Icon]
@@ -39,7 +39,7 @@
39#b Is detached from the dock ?39#b Is detached from the dock ?
40initially detached=false40initially detached=false
41#l[Normal;Keep above;Keep below;On Widget Layer;Reserve space] Accessibility :41#l[Normal;Keep above;Keep below;On Widget Layer;Reserve space] Accessibility :
42#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=utility)}42#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=Utility)}
43accessibility=043accessibility=0
44#b Should be visible on all desktops ?44#b Should be visible on all desktops ?
45sticky=true45sticky=true
@@ -90,7 +90,7 @@
90#[gtk-preferences]90#[gtk-preferences]
91[Configuration]91[Configuration]
9292
93#h+[/usr/share/cairo-dock/gauges;gauges;gauges] Choose one of the available themes :/93#h+[/usr/share/cairo-dock/gauges;gauges;gauges3] Choose one of the available themes :/
94theme = Turbo-night94theme = Turbo-night
9595
96#i[10;100] Max value :96#i[10;100] Max value :
9797
=== modified file 'Dbus/demos/demo_python/auto-load.conf'
--- Dbus/demos/demo_python/auto-load.conf 2011-04-20 20:46:51 +0000
+++ Dbus/demos/demo_python/auto-load.conf 2011-10-08 22:23:24 +0000
@@ -10,10 +10,10 @@
10category = 510category = 5
1111
12# Version of the applet; change it everytime you change something in the config file. Don't forget to update the version both in this file and in the config file.12# Version of the applet; change it everytime you change something in the config file. Don't forget to update the version both in this file and in the config file.
13version = 0.0.213version = 0.0.3
1414
15# Default icon to use if no icon has been defined by the user. If not specified, or if the file is not found, the "icon" file will be used.15# Default icon to use if no icon has been defined by the user. If not specified, or if the file is not found, the "icon" file will be used.
16icon = 16icon =
1717
18# Whether the applet can be instanciated several times or not.18# Whether the applet can be instanciated several times or not.
19multi-instance = true
20\ No newline at end of file19\ No newline at end of file
20multi-instance = true
2121
=== modified file 'Dbus/demos/demo_python/demo_python.conf'
--- Dbus/demos/demo_python/demo_python.conf 2011-04-20 20:46:51 +0000
+++ Dbus/demos/demo_python/demo_python.conf 2011-10-08 22:23:24 +0000
@@ -1,4 +1,4 @@
1#!en;0.0.21#!en;0.0.3
22
3#[gtk-about]3#[gtk-about]
4[Icon]4[Icon]
@@ -39,7 +39,7 @@
39#b Is detached from the dock ?39#b Is detached from the dock ?
40initially detached=false40initially detached=false
41#l[Normal;Keep above;Keep below;On Widget Layer;Reserve space] Accessibility :41#l[Normal;Keep above;Keep below;On Widget Layer;Reserve space] Accessibility :
42#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=utility)}42#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=Utility)}
43accessibility=043accessibility=0
44#b Should be visible on all desktops ?44#b Should be visible on all desktops ?
45sticky=true45sticky=true
@@ -90,7 +90,7 @@
90#[gtk-preferences]90#[gtk-preferences]
91[Configuration]91[Configuration]
9292
93#h+[/usr/share/cairo-dock/gauges;gauges;gauges] Choose one of the available themes :/93#h+[/usr/share/cairo-dock/gauges;gauges;gauges3] Choose one of the available themes :/
94theme = Turbo-night94theme = Turbo-night
9595
96#i[10;100] Max value :96#i[10;100] Max value :
9797
=== modified file 'Dbus/demos/demo_ruby/auto-load.conf'
--- Dbus/demos/demo_ruby/auto-load.conf 2011-04-20 20:46:51 +0000
+++ Dbus/demos/demo_ruby/auto-load.conf 2011-10-08 22:23:24 +0000
@@ -10,7 +10,7 @@
10category = 510category = 5
1111
12# Version of the applet; change it everytime you change something in the config file. Don't forget to update the version both in this file and in the config file.12# Version of the applet; change it everytime you change something in the config file. Don't forget to update the version both in this file and in the config file.
13version = 0.0.113version = 0.0.2
1414
15# Default icon to use if no icon has been defined by the user. If not specified, or if the file is not found, the "icon" file will be used.15# Default icon to use if no icon has been defined by the user. If not specified, or if the file is not found, the "icon" file will be used.
16icon = 16icon =
1717
=== modified file 'Dbus/demos/demo_ruby/demo_ruby.conf'
--- Dbus/demos/demo_ruby/demo_ruby.conf 2011-04-20 20:46:51 +0000
+++ Dbus/demos/demo_ruby/demo_ruby.conf 2011-10-08 22:23:24 +0000
@@ -1,4 +1,4 @@
1#!en;0.0.11#!en;0.0.2
22
3#[gtk-about]3#[gtk-about]
4[Icon]4[Icon]
@@ -39,7 +39,7 @@
39#b Is detached from the dock ?39#b Is detached from the dock ?
40initially detached=false40initially detached=false
41#l[Normal;Keep above;Keep below;On Widget Layer;Reserve space] Accessibility :41#l[Normal;Keep above;Keep below;On Widget Layer;Reserve space] Accessibility :
42#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=utility)}42#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=Utility)}
43accessibility=043accessibility=0
44#b Should be visible on all desktops ?44#b Should be visible on all desktops ?
45sticky=true45sticky=true
@@ -90,7 +90,7 @@
90#[gtk-preferences]90#[gtk-preferences]
91[Configuration]91[Configuration]
9292
93#h+[/usr/share/cairo-dock/gauges;gauges;gauges] Choose one of the available themes :/93#h+[/usr/share/cairo-dock/gauges;gauges;gauges3] Choose one of the available themes :/
94theme = Turbo-night94theme = Turbo-night
9595
96#i[10;100] Max value :96#i[10;100] Max value :
9797
=== modified file 'Dbus/demos/demo_vala/auto-load.conf'
--- Dbus/demos/demo_vala/auto-load.conf 2010-08-10 00:05:57 +0000
+++ Dbus/demos/demo_vala/auto-load.conf 2011-10-08 22:23:24 +0000
@@ -10,4 +10,4 @@
10category = 510category = 5
1111
12# Version of the applet; change it everytime you change something in the config file. Don't forget to update the version both in this file and in the config file.12# Version of the applet; change it everytime you change something in the config file. Don't forget to update the version both in this file and in the config file.
13version = 0.0.213version = 0.0.3
1414
=== modified file 'Dbus/demos/demo_vala/demo_vala.conf'
--- Dbus/demos/demo_vala/demo_vala.conf 2011-08-09 18:08:08 +0000
+++ Dbus/demos/demo_vala/demo_vala.conf 2011-10-08 22:23:24 +0000
@@ -1,4 +1,4 @@
1#!en;0.0.21#!en;0.0.3
22
3#[gtk-about]3#[gtk-about]
4[Icon]4[Icon]
@@ -39,7 +39,7 @@
39#b Is detached from the dock ?39#b Is detached from the dock ?
40initially detached=false40initially detached=false
41#l[Normal;Keep above;Keep below;On Widget Layer;Reserve space] Accessibility :41#l[Normal;Keep above;Keep below;On Widget Layer;Reserve space] Accessibility :
42#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=utility)}42#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=Utility)}
43accessibility=043accessibility=0
44#b Should be visible on all desktops ?44#b Should be visible on all desktops ?
45sticky=true45sticky=true
@@ -90,7 +90,7 @@
90#[gtk-preferences]90#[gtk-preferences]
91[Configuration]91[Configuration]
9292
93#h+[/usr/share/cairo-dock/gauges;gauges;gauges] Choose one of the available themes :/93#h+[/usr/share/cairo-dock/gauges;gauges;gauges3] Choose one of the available themes :/
94theme = Turbo-night94theme = Turbo-night
9595
96#i[10;100] Max value :96#i[10;100] Max value :
9797
=== modified file 'Dbus/interfaces/bash/CDBashApplet.sh'
--- Dbus/interfaces/bash/CDBashApplet.sh 2011-04-20 20:46:51 +0000
+++ Dbus/interfaces/bash/CDBashApplet.sh 2011-10-08 22:23:24 +0000
@@ -36,11 +36,15 @@
36LEFT=336LEFT=3
37DOCK=037DOCK=0
38DESKLET=138DESKLET=1
39UPPER_LEFT=039EMBLEM_TOP_LEFT=0
40LOWER_RIGHT=140EMBLEM_BOTTOM_RIGHT=1
41LOWER_LEFT=241EMBLEM_BOTTOM_LEFT=2
42UPPER_RIGHT=342EMBLEM_TOP_RIGHT=3
43MIDDLE=443EMBLEM_MIDDLE=4
44EMBLEM_BOTTOM=5
45EMBLEM_TOP=6
46EMBLEM_RIGHT=7
47EMBLEM_LEFT=8
44MENU_ENTRY=048MENU_ENTRY=0
45MENU_SUB_MENU=149MENU_SUB_MENU=1
46MENU_SEPARATOR=250MENU_SEPARATOR=2
4751
=== modified file 'Dbus/interfaces/mono/CDApplet.cs'
--- Dbus/interfaces/mono/CDApplet.cs 2011-04-20 20:46:51 +0000
+++ Dbus/interfaces/mono/CDApplet.cs 2011-10-08 22:23:24 +0000
@@ -56,11 +56,15 @@
56 DESKLET56 DESKLET
57 }57 }
58 public enum EmblemPosition {58 public enum EmblemPosition {
59 UPPER_LEFT = 0,59 EMBLEM_TOP_LEFT = 0,
60 LOWER_RIGHT,60 EMBLEM_BOTTOM_RIGHT,
61 LOWER_LEFT,61 EMBLEM_BOTTOM_LEFT,
62 UPPER_RIGHT,62 EMBLEM_TOP_RIGHT,
63 MIDDLE63 EMBLEM_MIDDLE,
64 EMBLEM_BOTTOM,
65 EMBLEM_TOP,
66 EMBLEM_RIGHT,
67 EMBLEM_LEFT
64 }68 }
65 public enum MenuItemType {69 public enum MenuItemType {
66 MENU_ENTRY = 0,70 MENU_ENTRY = 0,
6771
=== modified file 'Dbus/interfaces/python/CDApplet.py'
--- Dbus/interfaces/python/CDApplet.py 2011-08-09 18:08:08 +0000
+++ Dbus/interfaces/python/CDApplet.py 2011-10-08 22:23:24 +0000
@@ -56,11 +56,15 @@
56 DOCK = 056 DOCK = 0
57 DESKLET = 157 DESKLET = 1
58 # emblem position58 # emblem position
59 UPPER_LEFT = 059 EMBLEM_TOP_LEFT = 0
60 LOWER_RIGHT = 160 EMBLEM_BOTTOM_RIGHT = 1
61 LOWER_LEFT = 261 EMBLEM_BOTTOM_LEFT = 2
62 UPPER_RIGHT = 362 EMBLEM_TOP_RIGHT = 3
63 MIDDLE = 463 EMBLEM_MIDDLE = 4
64 EMBLEM_BOTTOM = 5
65 EMBLEM_TOP = 6
66 EMBLEM_RIGHT = 7
67 EMBLEM_LEFT = 8
64 # menu item types68 # menu item types
65 MENU_ENTRY = 069 MENU_ENTRY = 0
66 MENU_SUB_MENU = 170 MENU_SUB_MENU = 1
6771
=== modified file 'Dbus/interfaces/python/CairoDock.py'
--- Dbus/interfaces/python/CairoDock.py 2011-08-09 18:08:08 +0000
+++ Dbus/interfaces/python/CairoDock.py 2011-10-08 22:23:24 +0000
@@ -42,11 +42,15 @@
42 DOCK = "Dock"42 DOCK = "Dock"
43 DESKLET = "Desklet"43 DESKLET = "Desklet"
44 # emblem position44 # emblem position
45 UPPER_LEFT = 045 EMBLEM_TOP_LEFT = 0
46 LOWER_RIGHT = 146 EMBLEM_BOTTOM_RIGHT = 1
47 LOWER_LEFT = 247 EMBLEM_BOTTOM_LEFT = 2
48 UPPER_RIGHT = 348 EMBLEM_TOP_RIGHT = 3
49 MIDDLE = 449 EMBLEM_MIDDLE = 4
50 EMBLEM_BOTTOM = 5
51 EMBLEM_TOP = 6
52 EMBLEM_RIGHT = 7
53 EMBLEM_LEFT = 8
50 # module category54 # module category
51 CATEGORY_BEHAVIOR = 055 CATEGORY_BEHAVIOR = 0
52 CATEGORY_THEME = 156 CATEGORY_THEME = 1
5357
=== modified file 'Dbus/interfaces/ruby/CDApplet.rb'
--- Dbus/interfaces/ruby/CDApplet.rb 2011-04-20 20:46:51 +0000
+++ Dbus/interfaces/ruby/CDApplet.rb 2011-10-08 22:23:24 +0000
@@ -35,11 +35,15 @@
35 DOCK = 035 DOCK = 0
36 DESKLET = 136 DESKLET = 1
37 37
38 UPPER_LEFT = 038 EMBLEM_TOP_LEFT = 0
39 LOWER_RIGHT = 139 EMBLEM_BOTTOM_RIGHT = 1
40 LOWER_LEFT = 240 EMBLEM_BOTTOM_LEFT = 2
41 UPPER_RIGHT = 341 EMBLEM_TOP_RIGHT = 3
42 MIDDLE = 442 EMBLEM_MIDDLE = 4
43 EMBLEM_BOTTOM = 5
44 EMBLEM_TOP = 6
45 EMBLEM_RIGHT = 7
46 EMBLEM_LEFT = 8
43 47
44 MENU_ENTRY = 048 MENU_ENTRY = 0
45 MENU_SUB_MENU = 149 MENU_SUB_MENU = 1
4650
=== modified file 'Dbus/interfaces/vala/CDApplet.vala'
--- Dbus/interfaces/vala/CDApplet.vala 2011-04-20 20:46:51 +0000
+++ Dbus/interfaces/vala/CDApplet.vala 2011-10-08 22:23:24 +0000
@@ -97,11 +97,15 @@
97 DESKLET97 DESKLET
98 }98 }
99 public enum EmblemPosition {99 public enum EmblemPosition {
100 UPPER_LEFT = 0,100 EMBLEM_TOP_LEFT = 0,
101 LOWER_RIGHT,101 EMBLEM_BOTTOM_RIGHT,
102 LOWER_LEFT,102 EMBLEM_BOTTOM_LEFT,
103 UPPER_RIGHT,103 EMBLEM_TOP_RIGHT,
104 MIDDLE104 EMBLEM_MIDDLE,
105 EMBLEM_BOTTOM,
106 EMBLEM_TOP,
107 EMBLEM_RIGHT,
108 EMBLEM_LEFT
105 }109 }
106 public enum MenuItemType {110 public enum MenuItemType {
107 MENU_ENTRY = 0,111 MENU_ENTRY = 0,
@@ -254,10 +258,10 @@
254 }258 }
255 private void _on_reload(bool bConfigHasChanged)259 private void _on_reload(bool bConfigHasChanged)
256 {260 {
257 print (">>> our module is reloaded");261 print (">>> our module is reloaded\n");
258 if (bConfigHasChanged)262 if (bConfigHasChanged)
259 {263 {
260 print (">>> and our config has changed");264 print (">>> and our config has changed\n");
261 this._get_config();265 this._get_config();
262 this.reload();266 this.reload();
263 }267 }
@@ -294,7 +298,7 @@
294 }298 }
295 catch (IOError e)299 catch (IOError e)
296 {300 {
297 GLib.error (">>> module '%s' can't be found on the bus, exit.\nError was: %s", this.cAppletName, e.message);301 GLib.error (">>> module '%s' can't be found on the bus, exit.\nError was: %s\n", this.cAppletName, e.message);
298 }302 }
299 try303 try
300 {304 {
@@ -304,7 +308,7 @@
304 }308 }
305 catch (IOError e)309 catch (IOError e)
306 {310 {
307 GLib.error (">>> module '%s' can't be found on the bus, exit.\nError was: %s", this.cAppletName, e.message);311 GLib.error (">>> module '%s' can't be found on the bus, exit.\nError was: %s\n", this.cAppletName, e.message);
308 }312 }
309 this.icon.on_click.connect(on_click); // when the user left-clicks on our icon.313 this.icon.on_click.connect(on_click); // when the user left-clicks on our icon.
310 this.icon.on_middle_click.connect(on_middle_click); // when the user middle-clicks on our icon.314 this.icon.on_middle_click.connect(on_middle_click); // when the user middle-clicks on our icon.
311315
=== modified file 'Dbus/interfaces/vala/src/CDApplet.h'
--- Dbus/interfaces/vala/src/CDApplet.h 2011-04-20 20:46:51 +0000
+++ Dbus/interfaces/vala/src/CDApplet.h 2011-10-08 22:23:24 +0000
@@ -1,8 +1,8 @@
1/* CDApplet.h generated by valac 0.10.0, the Vala compiler, do not modify */1/* CDApplet.h generated by valac 0.10.0, the Vala compiler, do not modify */
22
33
4#ifndef ___HOME_FAB_CD2_CAIRO_DOCK_PLUG_INS_DBUS_INTERFACES_VALA_SRC_CDAPPLET_H__4#ifndef ___HOME_FAB_CD2_4_PLUG_INS_DBUS_INTERFACES_VALA_SRC_CDAPPLET_H__
5#define ___HOME_FAB_CD2_CAIRO_DOCK_PLUG_INS_DBUS_INTERFACES_VALA_SRC_CDAPPLET_H__5#define ___HOME_FAB_CD2_4_PLUG_INS_DBUS_INTERFACES_VALA_SRC_CDAPPLET_H__
66
7#include <glib.h>7#include <glib.h>
8#include <glib-object.h>8#include <glib-object.h>
@@ -138,11 +138,15 @@
138} CairoDockAppletCDAppletContainerType;138} CairoDockAppletCDAppletContainerType;
139139
140typedef enum {140typedef enum {
141 CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_UPPER_LEFT = 0,141 CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_EMBLEM_TOP_LEFT = 0,
142 CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_LOWER_RIGHT,142 CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_EMBLEM_BOTTOM_RIGHT,
143 CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_LOWER_LEFT,143 CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_EMBLEM_BOTTOM_LEFT,
144 CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_UPPER_RIGHT,144 CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_EMBLEM_TOP_RIGHT,
145 CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_MIDDLE145 CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_EMBLEM_MIDDLE,
146 CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_EMBLEM_BOTTOM,
147 CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_EMBLEM_TOP,
148 CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_EMBLEM_RIGHT,
149 CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_EMBLEM_LEFT
146} CairoDockAppletCDAppletEmblemPosition;150} CairoDockAppletCDAppletEmblemPosition;
147151
148typedef enum {152typedef enum {
149153
=== modified file 'Dbus/interfaces/vala/src/CDApplet.vapi'
--- Dbus/interfaces/vala/src/CDApplet.vapi 2011-04-20 20:46:51 +0000
+++ Dbus/interfaces/vala/src/CDApplet.vapi 2011-10-08 22:23:24 +0000
@@ -18,11 +18,15 @@
18 }18 }
19 [CCode (cprefix = "CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_", cheader_filename = "CDApplet.h")]19 [CCode (cprefix = "CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_", cheader_filename = "CDApplet.h")]
20 public enum EmblemPosition {20 public enum EmblemPosition {
21 UPPER_LEFT,21 EMBLEM_TOP_LEFT,
22 LOWER_RIGHT,22 EMBLEM_BOTTOM_RIGHT,
23 LOWER_LEFT,23 EMBLEM_BOTTOM_LEFT,
24 UPPER_RIGHT,24 EMBLEM_TOP_RIGHT,
25 MIDDLE25 EMBLEM_MIDDLE,
26 EMBLEM_BOTTOM,
27 EMBLEM_TOP,
28 EMBLEM_RIGHT,
29 EMBLEM_LEFT
26 }30 }
27 [CCode (cprefix = "CAIRO_DOCK_APPLET_CD_APPLET_MENU_ITEM_ID_", cheader_filename = "CDApplet.h")]31 [CCode (cprefix = "CAIRO_DOCK_APPLET_CD_APPLET_MENU_ITEM_ID_", cheader_filename = "CDApplet.h")]
28 public enum MenuItemId {32 public enum MenuItemId {
2933
=== modified file 'Dbus/src/applet-struct.h'
--- Dbus/src/applet-struct.h 2011-04-20 20:46:51 +0000
+++ Dbus/src/applet-struct.h 2011-10-08 22:23:24 +0000
@@ -105,7 +105,6 @@
105 dbusMainObject *pMainObject;105 dbusMainObject *pMainObject;
106 const gchar *cProgName;106 const gchar *cProgName;
107 gchar *cBasePath;107 gchar *cBasePath;
108 GList *pAppletList;
109 GtkWidget *pModuleSubMenu;108 GtkWidget *pModuleSubMenu;
110 GtkWidget *pModuleMainMenu;109 GtkWidget *pModuleMainMenu;
111 dbusApplet *pCurrentMenuDbusApplet;110 dbusApplet *pCurrentMenuDbusApplet;
112111
=== modified file 'Dbus/src/interface-applet-methods.c'
--- Dbus/src/interface-applet-methods.c 2011-08-09 18:08:08 +0000
+++ Dbus/src/interface-applet-methods.c 2011-10-08 22:23:24 +0000
@@ -131,10 +131,18 @@
131 131
132 g_return_val_if_fail (pIcon->pIconBuffer != NULL, FALSE);132 g_return_val_if_fail (pIcon->pIconBuffer != NULL, FALSE);
133 133
134 CairoEmblem *pEmblem = cairo_dock_make_emblem (cImage, pIcon, pContainer);134 if (cImage == NULL || *cImage == '\0' || strcmp (cImage, "none") == 0)
135 {
136 cairo_dock_remove_overlay_at_position (pIcon, iPosition);
137 }
138 else
139 {
140 cairo_dock_add_overlay_from_image (pIcon, cImage, iPosition);
141 }
142 /**CairoEmblem *pEmblem = cairo_dock_make_emblem (cImage, pIcon);
135 pEmblem->iPosition = iPosition;143 pEmblem->iPosition = iPosition;
136 cairo_dock_draw_emblem_on_icon (pEmblem, pIcon, pContainer);144 cairo_dock_draw_emblem_on_icon (pEmblem, pIcon, pContainer);
137 cairo_dock_free_emblem (pEmblem);145 cairo_dock_free_emblem (pEmblem);*/
138 146
139 cairo_dock_redraw_icon (pIcon, pContainer);147 cairo_dock_redraw_icon (pIcon, pContainer);
140 return TRUE;148 return TRUE;
@@ -149,7 +157,7 @@
149 157
150 if (CAIRO_DOCK_IS_DOCK (pContainer) && cAnimation != NULL)158 if (CAIRO_DOCK_IS_DOCK (pContainer) && cAnimation != NULL)
151 {159 {
152 cairo_dock_request_icon_animation (pIcon, CAIRO_DOCK (pContainer), cAnimation, iNbRounds);160 cairo_dock_request_icon_animation (pIcon, pContainer, cAnimation, iNbRounds);
153 return TRUE;161 return TRUE;
154 }162 }
155 return FALSE;163 return FALSE;
@@ -371,7 +379,7 @@
371 }379 }
372 if (iNbCharsMax != 0)380 if (iNbCharsMax != 0)
373 {381 {
374 gchar *cLabel = g_strdup_printf ("<b>%d</b>", cInitialText ? strlen (cInitialText) : 0);382 gchar *cLabel = g_strdup_printf ("<b>%zd</b>", cInitialText ? strlen (cInitialText) : 0);
375 GtkWidget *pLabel = gtk_label_new (cLabel);383 GtkWidget *pLabel = gtk_label_new (cLabel);
376 g_free (cLabel);384 g_free (cLabel);
377 gtk_label_set_use_markup (GTK_LABEL (pLabel), TRUE);385 gtk_label_set_use_markup (GTK_LABEL (pLabel), TRUE);
@@ -842,7 +850,9 @@
842 memset (&attr, 0, sizeof (CairoGraphAttribute));850 memset (&attr, 0, sizeof (CairoGraphAttribute));
843 pRenderAttr = CAIRO_DATA_RENDERER_ATTRIBUTE (&attr);851 pRenderAttr = CAIRO_DATA_RENDERER_ATTRIBUTE (&attr);
844 pRenderAttr->cModelName = "graph";852 pRenderAttr->cModelName = "graph";
845 pRenderAttr->iMemorySize = (pIcon->fWidth > 1 ? pIcon->fWidth : 32); // fWidht peut etre <= 1 en mode desklet au chargement.853 int w, h;
854 cairo_dock_get_icon_extent (pIcon, &w, &h);
855 pRenderAttr->iMemorySize = (w > 1 ? w : 32);
846 // Line;Plain;Bar;Circle;Plain Circle856 // Line;Plain;Bar;Circle;Plain Circle
847 if (cTheme == NULL || strcmp (cTheme, "Line") == 0)857 if (cTheme == NULL || strcmp (cTheme, "Line") == 0)
848 attr.iType = CAIRO_DOCK_GRAPH_LINE;858 attr.iType = CAIRO_DOCK_GRAPH_LINE;
@@ -854,7 +864,6 @@
854 attr.iType = CAIRO_DOCK_GRAPH_CIRCLE;864 attr.iType = CAIRO_DOCK_GRAPH_CIRCLE;
855 else if (strcmp (cTheme, "Plain Circle") == 0)865 else if (strcmp (cTheme, "Plain Circle") == 0)
856 attr.iType = CAIRO_DOCK_GRAPH_CIRCLE_PLAIN;866 attr.iType = CAIRO_DOCK_GRAPH_CIRCLE_PLAIN;
857 attr.iRadius = 10;
858 attr.bMixGraphs = FALSE;867 attr.bMixGraphs = FALSE;
859 double *fHighColor = g_new (double, iNbValues*3);868 double *fHighColor = g_new (double, iNbValues*3);
860 double *fLowColor = g_new (double, iNbValues*3);869 double *fLowColor = g_new (double, iNbValues*3);
@@ -1286,7 +1295,7 @@
1286 else if (strcmp (cProperty, "width") == 0)1295 else if (strcmp (cProperty, "width") == 0)
1287 {1296 {
1288 int iWidth, iHeight;1297 int iWidth, iHeight;
1289 cairo_dock_get_icon_extent (pIcon, pContainer, &iWidth, &iHeight);1298 cairo_dock_get_icon_extent (pIcon, &iWidth, &iHeight);
1290 if (pInstance->pDock)1299 if (pInstance->pDock)
1291 {1300 {
1292 double a = cairo_dock_get_max_scale (pContainer);1301 double a = cairo_dock_get_max_scale (pContainer);
@@ -1299,7 +1308,7 @@
1299 else if (strcmp (cProperty, "height") == 0)1308 else if (strcmp (cProperty, "height") == 0)
1300 {1309 {
1301 int iWidth, iHeight;1310 int iWidth, iHeight;
1302 cairo_dock_get_icon_extent (pIcon, pContainer, &iWidth, &iHeight);1311 cairo_dock_get_icon_extent (pIcon, &iWidth, &iHeight);
1303 if (pInstance->pDock)1312 if (pInstance->pDock)
1304 {1313 {
1305 double a = cairo_dock_get_max_scale (pContainer);1314 double a = cairo_dock_get_max_scale (pContainer);
@@ -1354,7 +1363,7 @@
1354 }1363 }
1355 CairoDockPositionType iScreenBorder = ((! pContainer->bIsHorizontal) << 1) | (! pContainer->bDirectionUp);1364 CairoDockPositionType iScreenBorder = ((! pContainer->bIsHorizontal) << 1) | (! pContainer->bDirectionUp);
1356 int iWidth, iHeight;1365 int iWidth, iHeight;
1357 cairo_dock_get_icon_extent (pIcon, pContainer, &iWidth, &iHeight);1366 cairo_dock_get_icon_extent (pIcon, &iWidth, &iHeight);
1358 if (pInstance->pDock)1367 if (pInstance->pDock)
1359 {1368 {
1360 double a = cairo_dock_get_max_scale (pContainer);1369 double a = cairo_dock_get_max_scale (pContainer);
13611370
=== modified file 'Dbus/src/interface-applet-object.c'
--- Dbus/src/interface-applet-object.c 2011-04-20 20:46:51 +0000
+++ Dbus/src/interface-applet-object.c 2011-10-08 22:23:24 +0000
@@ -29,6 +29,7 @@
29#include "interface-applet-object.h"29#include "interface-applet-object.h"
3030
31static int s_iModuleId = 1;31static int s_iModuleId = 1;
32static GList *s_pAppletList = NULL;
3233
33static void cd_dbus_applet_dispose (GObject *object);34static void cd_dbus_applet_dispose (GObject *object);
34static void cd_dbus_applet_finalize (GObject *object);35static void cd_dbus_applet_finalize (GObject *object);
@@ -93,7 +94,7 @@
93{94{
94 dbusApplet *pDbusApplet = NULL;95 dbusApplet *pDbusApplet = NULL;
95 GList *a;96 GList *a;
96 for (a = myData.pAppletList; a != NULL; a = a->next)97 for (a = s_pAppletList; a != NULL; a = a->next)
97 {98 {
98 pDbusApplet = a->data;99 pDbusApplet = a->data;
99 if (pDbusApplet->pModuleInstance == pModuleInstance)100 if (pDbusApplet->pModuleInstance == pModuleInstance)
@@ -103,7 +104,7 @@
103}104}
104105
105106
106#define _applet_list_is_empty() (myData.pAppletList == NULL)107#define _applet_list_is_empty() (s_pAppletList == NULL)
107108
108dbusApplet *cd_dbus_create_remote_applet_object (CairoDockModuleInstance *pModuleInstance)109dbusApplet *cd_dbus_create_remote_applet_object (CairoDockModuleInstance *pModuleInstance)
109{110{
@@ -182,13 +183,13 @@
182 myData.xActiveWindow = cairo_dock_get_current_active_window ();183 myData.xActiveWindow = cairo_dock_get_current_active_window ();
183 }184 }
184 185
185 myData.pAppletList = g_list_prepend (myData.pAppletList, pDbusApplet);186 s_pAppletList = g_list_prepend (s_pAppletList, pDbusApplet);
186 return pDbusApplet;187 return pDbusApplet;
187}188}
188189
189void cd_dbus_delete_remote_applet_object (dbusApplet *pDbusApplet)190void cd_dbus_delete_remote_applet_object (dbusApplet *pDbusApplet)
190{191{
191 myData.pAppletList = g_list_remove (myData.pAppletList, pDbusApplet);192 s_pAppletList = g_list_remove (s_pAppletList, pDbusApplet);
192 193
193 if (_applet_list_is_empty ()) // si plus d'applet dbus, inutile de garder les notifications actives.194 if (_applet_list_is_empty ()) // si plus d'applet dbus, inutile de garder les notifications actives.
194 {195 {
195196
=== modified file 'Dbus/src/interface-applet-signals.c'
--- Dbus/src/interface-applet-signals.c 2011-08-09 18:08:08 +0000
+++ Dbus/src/interface-applet-signals.c 2011-10-08 22:23:24 +0000
@@ -258,7 +258,7 @@
258 }258 }
259}259}
260260
261#define CAIRO_DOCK_IS_EXTERNAL_APPLET(pIcon) (CAIRO_DOCK_IS_APPLET (pIcon) && pIcon->pModuleInstance->pModule->cSoFilePath == NULL)261#define CAIRO_DOCK_IS_EXTERNAL_APPLET(pIcon) (CAIRO_DOCK_IS_APPLET (pIcon) && pIcon->pModuleInstance->pModule->cSoFilePath == NULL && pIcon->pModuleInstance->pModule->pInterface->stopModule == cd_dbus_emit_on_stop_module)
262262
263static inline Icon *_get_main_icon_from_clicked_icon (Icon *pIcon, CairoContainer *pContainer)263static inline Icon *_get_main_icon_from_clicked_icon (Icon *pIcon, CairoContainer *pContainer)
264{264{
265265
=== modified file 'Dbus/src/interface-main-methods.c'
--- Dbus/src/interface-main-methods.c 2011-08-09 18:08:08 +0000
+++ Dbus/src/interface-main-methods.c 2011-10-08 22:23:24 +0000
@@ -777,7 +777,7 @@
777 g_value_set_boolean (v, pModule->pVisitCard->bMultiInstance);777 g_value_set_boolean (v, pModule->pVisitCard->bMultiInstance);
778 g_hash_table_insert (h, g_strdup ("is-multi-instance"), v);778 g_hash_table_insert (h, g_strdup ("is-multi-instance"), v);
779 779
780 g_print ("list instances ...\n");780 cd_debug ("list instances ...");
781 gchar **pInstances = g_new0 (gchar*, g_list_length (pModule->pInstancesList)+1);781 gchar **pInstances = g_new0 (gchar*, g_list_length (pModule->pInstancesList)+1);
782 CairoDockModuleInstance *pInstance;782 CairoDockModuleInstance *pInstance;
783 int i = 0;783 int i = 0;
@@ -787,12 +787,12 @@
787 pInstance = mi->data;787 pInstance = mi->data;
788 pInstances[i++] = g_strdup (pInstance->cConfFilePath);788 pInstances[i++] = g_strdup (pInstance->cConfFilePath);
789 }789 }
790 g_print ("write instances ...\n");790 cd_debug ("write instances ...");
791 v = g_new0 (GValue, 1);791 v = g_new0 (GValue, 1);
792 g_value_init (v, G_TYPE_STRV);792 g_value_init (v, G_TYPE_STRV);
793 g_value_set_boxed (v, pInstances);793 g_value_set_boxed (v, pInstances);
794 g_hash_table_insert (h, g_strdup ("instances"), v);794 g_hash_table_insert (h, g_strdup ("instances"), v);
795 g_print ("done.\n");795 cd_debug ("done.");
796 return TRUE; // continue796 return TRUE; // continue
797}797}
798gboolean cd_dbus_main_get_module_properties (dbusMainObject *pDbusCallback, const gchar *cName, GPtrArray **pAttributes, GError **error)798gboolean cd_dbus_main_get_module_properties (dbusMainObject *pDbusCallback, const gchar *cName, GPtrArray **pAttributes, GError **error)
@@ -1013,7 +1013,7 @@
1013 NULL,1013 NULL,
1014 fOrder);1014 fOrder);
1015 pIcon->iTrueType = CAIRO_DOCK_ICON_TYPE_CONTAINER;1015 pIcon->iTrueType = CAIRO_DOCK_ICON_TYPE_CONTAINER;
1016 pIcon->iSubdockViewType = iSubdockViewType;1016 cairo_dock_set_subdock_content_renderer (pIcon, iSubdockViewType);
1017 pIcon->pSubDock = cairo_dock_create_subdock_from_scratch (NULL, pIcon->cName, pParentDock); // NULL <=> default sub-docks view.1017 pIcon->pSubDock = cairo_dock_create_subdock_from_scratch (NULL, pIcon->cName, pParentDock); // NULL <=> default sub-docks view.
1018 }1018 }
1019 else if (strcmp (cType, "Separator") == 0)1019 else if (strcmp (cType, "Separator") == 0)
@@ -1281,14 +1281,22 @@
1281 if (pContainer == NULL)1281 if (pContainer == NULL)
1282 continue;1282 continue;
1283 1283
1284 cairo_t *pIconContext = cairo_create (pIcon->pIconBuffer);1284 if (cImage == NULL || *cImage == '\0' || strcmp (cImage, "none") == 0)
1285 1285 {
1286 CairoEmblem *pEmblem = cairo_dock_make_emblem (cImage, pIcon, pContainer);1286 cairo_dock_remove_overlay_at_position (pIcon, iPosition);
1287 }
1288 else
1289 {
1290 if (iPosition < 0) // [-N, -1]
1291 cairo_dock_print_overlay_on_icon (pIcon, pContainer, cImage, - iPosition - 1);
1292 else // [0, N-1]
1293 cairo_dock_add_overlay_from_image (pIcon, cImage, iPosition);
1294 }
1295 /**CairoEmblem *pEmblem = cairo_dock_make_emblem (cImage, pIcon);
1287 pEmblem->iPosition = iPosition;1296 pEmblem->iPosition = iPosition;
1288 cairo_dock_draw_emblem_on_icon (pEmblem, pIcon, pContainer);1297 cairo_dock_draw_emblem_on_icon (pEmblem, pIcon, pContainer);
1289 cairo_dock_free_emblem (pEmblem);1298 cairo_dock_free_emblem (pEmblem);*/
12901299
1291 cairo_destroy (pIconContext);
1292 cairo_dock_redraw_icon (pIcon, pContainer);1300 cairo_dock_redraw_icon (pIcon, pContainer);
1293 }1301 }
1294 1302
@@ -1314,7 +1322,7 @@
1314 pContainer = cairo_dock_search_container_from_icon (pIcon);1322 pContainer = cairo_dock_search_container_from_icon (pIcon);
1315 if (! CAIRO_DOCK_IS_DOCK (pContainer))1323 if (! CAIRO_DOCK_IS_DOCK (pContainer))
1316 continue;1324 continue;
1317 cairo_dock_request_icon_animation (pIcon, CAIRO_DOCK (pContainer), cAnimation, iNbRounds);1325 cairo_dock_request_icon_animation (pIcon, pContainer, cAnimation, iNbRounds);
1318 }1326 }
1319 1327
1320 g_list_free (pList);1328 g_list_free (pList);
13211329
=== modified file 'Disks/data/Disks.conf.in'
--- Disks/data/Disks.conf.in 2011-08-09 18:08:08 +0000
+++ Disks/data/Disks.conf.in 2011-10-08 22:23:24 +0000
@@ -42,7 +42,7 @@
42size = 96;9642size = 96;96
4343
44#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:44#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:
45#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=utility)}45#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=Utility)}
46accessibility=046accessibility=0
4747
48#b Should be visible on all desktops?48#b Should be visible on all desktops?
@@ -116,9 +116,12 @@
116#X[Gauge;gtk-dialog-info]116#X[Gauge;gtk-dialog-info]
117frame_gauge=117frame_gauge=
118118
119#h+[@gaugesdir@;gauges;gauges] Choose one of the available themes:/119#h+[@gaugesdir@;gauges;gauges3] Choose one of the available themes:/
120theme = Turbo-night-fuel120theme = Turbo-night-fuel
121121
122#l+[No;With dock orientation;Yes] Rotate applet theme :
123rotate theme = No
124
122125
123#X[Graph;gtk-dialog-info]126#X[Graph;gtk-dialog-info]
124frame_graph=127frame_graph=
125128
=== modified file 'Disks/src/applet-config.c'
--- Disks/src/applet-config.c 2011-08-09 18:08:08 +0000
+++ Disks/src/applet-config.c 2011-10-08 22:23:24 +0000
@@ -35,6 +35,7 @@
3535
36 ///\_________________ Gauge36 ///\_________________ Gauge
37 myConfig.cGThemePath = CD_CONFIG_GET_GAUGE_THEME ("Configuration", "theme");37 myConfig.cGThemePath = CD_CONFIG_GET_GAUGE_THEME ("Configuration", "theme");
38 myConfig.iRotateTheme = CD_CONFIG_GET_INTEGER ("Configuration", "rotate theme");
38 39
39 ///\_________________ Graph40 ///\_________________ Graph
40 myConfig.iGraphType = CD_CONFIG_GET_INTEGER ("Configuration", "graphic type");41 myConfig.iGraphType = CD_CONFIG_GET_INTEGER ("Configuration", "graphic type");
4142
=== modified file 'Disks/src/applet-disks.c'
--- Disks/src/applet-disks.c 2011-08-09 18:08:08 +0000
+++ Disks/src/applet-disks.c 2011-10-08 22:23:24 +0000
@@ -331,6 +331,7 @@
331 g_list_free_full (myData.lParts, g_free);331 g_list_free_full (myData.lParts, g_free);
332#else332#else
333 g_list_foreach (myData.lParts, (GFunc) _reset_parts_list, NULL);333 g_list_foreach (myData.lParts, (GFunc) _reset_parts_list, NULL);
334 g_list_free (myData.lParts);
334#endif335#endif
335 myData.lParts = NULL;336 myData.lParts = NULL;
336 }337 }
337338
=== modified file 'Disks/src/applet-init.c'
--- Disks/src/applet-init.c 2011-08-09 18:08:08 +0000
+++ Disks/src/applet-init.c 2011-10-08 22:23:24 +0000
@@ -67,6 +67,7 @@
67 memset (&attr, 0, sizeof (CairoGaugeAttribute));67 memset (&attr, 0, sizeof (CairoGaugeAttribute));
68 pRenderAttr = CAIRO_DATA_RENDERER_ATTRIBUTE (&attr);68 pRenderAttr = CAIRO_DATA_RENDERER_ATTRIBUTE (&attr);
69 pRenderAttr->cModelName = "gauge";69 pRenderAttr->cModelName = "gauge";
70 pRenderAttr->iRotateTheme = myConfig.iRotateTheme;
70 attr.cThemePath = myConfig.cGThemePath;71 attr.cThemePath = myConfig.cGThemePath;
71 }72 }
72 else if (myConfig.iDisplayType == CD_DISKS_GRAPH)73 else if (myConfig.iDisplayType == CD_DISKS_GRAPH)
@@ -75,7 +76,7 @@
75 memset (&attr, 0, sizeof (CairoGraphAttribute));76 memset (&attr, 0, sizeof (CairoGraphAttribute));
76 pRenderAttr = CAIRO_DATA_RENDERER_ATTRIBUTE (&attr);77 pRenderAttr = CAIRO_DATA_RENDERER_ATTRIBUTE (&attr);
77 pRenderAttr->cModelName = "graph";78 pRenderAttr->cModelName = "graph";
78 pRenderAttr->iMemorySize = (myIcon->fWidth > 1 ? myIcon->fWidth : 32); // fWidht peut etre <= 1 en mode desklet au chargement.79 pRenderAttr->iMemorySize = (myIcon->fWidth > 1 ? myIcon->fWidth : 32); // fWidth peut etre <= 1 en mode desklet au chargement.
79 attr.iType = myConfig.iGraphType;80 attr.iType = myConfig.iGraphType;
80 attr.iRadius = 10;81 attr.iRadius = 10;
81 attr.bMixGraphs = myConfig.bMixGraph;82 attr.bMixGraphs = myConfig.bMixGraph;
@@ -202,7 +203,10 @@
202 }203 }
203 if (myConfig.iInfoDisplay != CAIRO_DOCK_INFO_ON_LABEL)204 if (myConfig.iInfoDisplay != CAIRO_DOCK_INFO_ON_LABEL)
204 {205 {
205 CD_APPLET_SET_NAME_FOR_MY_ICON (myConfig.defaultTitle);206 if (myConfig.defaultTitle) // has another default name
207 CD_APPLET_SET_NAME_FOR_MY_ICON (myConfig.defaultTitle);
208 else
209 CD_APPLET_SET_NAME_FOR_MY_ICON (myApplet->pModule->pVisitCard->cTitle);
206 }210 }
207 211
208 cairo_dock_relaunch_task_immediately (myData.pPeriodicTask, myConfig.iCheckInterval);212 cairo_dock_relaunch_task_immediately (myData.pPeriodicTask, myConfig.iCheckInterval);
209213
=== modified file 'Disks/src/applet-struct.h'
--- Disks/src/applet-struct.h 2011-08-09 18:08:08 +0000
+++ Disks/src/applet-struct.h 2011-10-08 22:23:24 +0000
@@ -47,6 +47,7 @@
47struct _AppletConfig {47struct _AppletConfig {
48 gchar *defaultTitle;48 gchar *defaultTitle;
49 gchar *cGThemePath;49 gchar *cGThemePath;
50 RendererRotateTheme iRotateTheme;
50 gchar *cWatermarkImagePath; // delete ?51 gchar *cWatermarkImagePath; // delete ?
51 gdouble fAlpha;52 gdouble fAlpha;
52 53
5354
=== modified file 'Doncky/data/Doncky.conf.in'
--- Doncky/data/Doncky.conf.in 2011-08-09 18:08:08 +0000
+++ Doncky/data/Doncky.conf.in 2011-10-08 22:23:24 +0000
@@ -54,7 +54,7 @@
54#b Is detached from the dock54#b Is detached from the dock
55initially detached=true55initially detached=true
56#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:56#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:
57#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=utility)}57#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=Utility)}
58accessibility=058accessibility=0
59#b Should be visible on all desktops?59#b Should be visible on all desktops?
60sticky=true60sticky=true
6161
=== modified file 'Folders/data/CMakeLists.txt'
--- Folders/data/CMakeLists.txt 2010-08-10 00:05:57 +0000
+++ Folders/data/CMakeLists.txt 2011-10-08 22:23:24 +0000
@@ -5,6 +5,6 @@
55
6install (FILES ${CMAKE_CURRENT_BINARY_DIR}/Folders.conf6install (FILES ${CMAKE_CURRENT_BINARY_DIR}/Folders.conf
7 preview.jpg7 preview.jpg
8 icon.svg8 icon.png
9 DESTINATION ${foldersdatadir})9 DESTINATION ${foldersdatadir})
1010
1111
=== modified file 'Folders/data/Folders.conf.in'
--- Folders/data/Folders.conf.in 2011-08-09 18:08:08 +0000
+++ Folders/data/Folders.conf.in 2011-10-08 22:23:24 +0000
@@ -66,7 +66,7 @@
66#b Is detached from the dock66#b Is detached from the dock
67initially detached=false67initially detached=false
68#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:68#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:
69#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=utility)}69#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=Utility)}
70accessibility=070accessibility=0
71#b Should be visible on all desktops?71#b Should be visible on all desktops?
72sticky=true72sticky=true
7373
=== modified file 'Folders/data/icon.png' (properties changed: +x to -x)
74Binary files Folders/data/icon.png 2010-08-10 00:05:57 +0000 and Folders/data/icon.png 2011-10-08 22:23:24 +0000 differ74Binary files Folders/data/icon.png 2010-08-10 00:05:57 +0000 and Folders/data/icon.png 2011-10-08 22:23:24 +0000 differ
=== removed file 'Folders/data/icon.svg'
--- Folders/data/icon.svg 2010-08-10 00:05:57 +0000
+++ Folders/data/icon.svg 1970-01-01 00:00:00 +0000
@@ -1,127 +0,0 @@
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
3"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
4<!-- Created with Inkscape (http://www.inkscape.org/) --><svg height="128.00000pt" id="svg1" inkscape:version="0.39cvs" sodipodi:docbase="/home/andy/Desktop/etiquette-icons-0.4/scalable/filesystems" sodipodi:docname="gnome-fs-home.svg" sodipodi:version="0.32" width="128.00000pt" xmlns="http://www.w3.org/2000/svg" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:xlink="http://www.w3.org/1999/xlink">
5 <metadata>
6 <rdf:RDF xmlns:cc="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
7 <cc:Work rdf:about="">
8 <dc:title>Etiquette Icons</dc:title>
9 <dc:description></dc:description>
10 <dc:subject>
11 <rdf:Bag>
12 <rdf:li>hash</rdf:li>
13 <rdf:li></rdf:li>
14 <rdf:li>filesystem</rdf:li>
15 <rdf:li>computer</rdf:li>
16 <rdf:li>icons</rdf:li>
17 <rdf:li>folder</rdf:li>
18 </rdf:Bag>
19 </dc:subject>
20 <dc:publisher>
21 <cc:Agent rdf:about="http://www.openclipart.org">
22 <dc:title>Andy Fitzsimon</dc:title>
23 </cc:Agent>
24 </dc:publisher>
25 <dc:creator>
26 <cc:Agent>
27 <dc:title>Andy Fitzsimon</dc:title>
28 </cc:Agent>
29 </dc:creator>
30 <dc:rights>
31 <cc:Agent>
32 <dc:title>Andy Fitzsimon</dc:title>
33 </cc:Agent>
34 </dc:rights>
35 <dc:date></dc:date>
36 <dc:format>image/svg+xml</dc:format>
37 <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
38 <cc:license rdf:resource="http://web.resource.org/cc/PublicDomain"/>
39 <dc:language>en</dc:language>
40 </cc:Work>
41 <cc:License rdf:about="http://web.resource.org/cc/PublicDomain">
42 <cc:permits rdf:resource="http://web.resource.org/cc/Reproduction"/>
43 <cc:permits rdf:resource="http://web.resource.org/cc/Distribution"/>
44 <cc:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/>
45 </cc:License>
46 </rdf:RDF>
47 </metadata>
48 <defs id="defs3">
49 <linearGradient id="linearGradient2102">
50 <stop id="stop2103" offset="0.0000000" style="stop-color:#bab5ab;stop-opacity:1.0000000;"/>
51 <stop id="stop2104" offset="1.0000000" style="stop-color:#eae8e3;stop-opacity:1.0000000;"/>
52 </linearGradient>
53 <linearGradient id="linearGradient1520">
54 <stop id="stop1522" offset="0.0000000" style="stop-color:#7590ae;stop-opacity:1.0000000;"/>
55 <stop id="stop1523" offset="1.0000000" style="stop-color:#314e6c;stop-opacity:1.0000000;"/>
56 </linearGradient>
57 <linearGradient id="linearGradient1806">
58 <stop id="stop1807" offset="0.0000000" style="stop-color:#000000;stop-opacity:0.40677965;"/>
59 <stop id="stop3276" offset="0.64777780" style="stop-color:#000000;stop-opacity:0.073446326;"/>
60 <stop id="stop1808" offset="1.0000000" style="stop-color:#000000;stop-opacity:0.0000000;"/>
61 </linearGradient>
62 <linearGradient id="linearGradient1517">
63 <stop id="stop1518" offset="0.0000000" style="stop-color:#ffffff;stop-opacity:0.0000000;"/>
64 <stop id="stop1519" offset="1.0000000" style="stop-color:#ffffff;stop-opacity:1.0000000;"/>
65 </linearGradient>
66 <linearGradient id="linearGradient1504">
67 <stop id="stop1505" offset="0.0000000" style="stop-color:#a3a3a3;stop-opacity:1.0000000;"/>
68 <stop id="stop1506" offset="1.0000000" style="stop-color:#ffffff;stop-opacity:1.0000000;"/>
69 </linearGradient>
70 <linearGradient id="linearGradient1792">
71 <stop id="stop1793" offset="0.0000000" style="stop-color:#000000;stop-opacity:0.084745765;"/>
72 <stop id="stop1795" offset="0.63222224" style="stop-color:#000000;stop-opacity:0.38418078;"/>
73 <stop id="stop1794" offset="1.0000000" style="stop-color:#000000;stop-opacity:0.0000000;"/>
74 </linearGradient>
75 <linearGradient id="linearGradient1511">
76 <stop id="stop1512" offset="0.0000000" style="stop-color:#4b6983;stop-opacity:1.0000000;"/>
77 <stop id="stop1513" offset="1.0000000" style="stop-color:#9db8d2;stop-opacity:1.0000000;"/>
78 </linearGradient>
79 <linearGradient id="linearGradient1501">
80 <stop id="stop1502" offset="0.0000000" style="stop-color:#ffffff;stop-opacity:1.0000000;"/>
81 <stop id="stop1504" offset="1.0000000" style="stop-color:#ffffff;stop-opacity:0.0000000;"/>
82 </linearGradient>
83 <linearGradient id="linearGradient1499" x1="0.85826772" x2="0.062992126" xlink:href="#linearGradient1501" y1="0.14062500" y2="0.54687500"/>
84 <linearGradient id="linearGradient1492">
85 <stop id="stop1493" offset="0.0000000" style="stop-color:#c0c0c0;stop-opacity:1.0000000;"/>
86 <stop id="stop1496" offset="0.34923077" style="stop-color:#f1f1f1;stop-opacity:1.0000000;"/>
87 <stop id="stop1494" offset="1.0000000" style="stop-color:#f0f0f0;stop-opacity:1.0000000;"/>
88 </linearGradient>
89 <linearGradient id="linearGradient1495" x1="0.88034189" x2="0.085470088" xlink:href="#linearGradient1492" y1="0.21093750" y2="1.1796875"/>
90 <linearGradient id="linearGradient1506" x1="0.68278474" x2="0.68278474" xlink:href="#linearGradient2102" y1="0.18663210" y2="1.0092229"/>
91 <radialGradient cx="0.49032259" cy="0.50649351" fx="0.50977784" fy="0.15800871" id="radialGradient1505" r="0.46014288" xlink:href="#linearGradient1806"/>
92 <radialGradient cx="0.49032259" cy="0.50649351" fx="0.49027237" fy="0.095238097" id="radialGradient1502" r="0.46014288" xlink:href="#linearGradient1806"/>
93 <linearGradient id="linearGradient1518">
94 <stop id="stop1520" offset="0.0000000" style="stop-color:#000000;stop-opacity:1.0000000;"/>
95 <stop id="stop1521" offset="1.0000000" style="stop-color:#ebebeb;stop-opacity:1.0000000;"/>
96 </linearGradient>
97 <linearGradient gradientTransform="scale(1.385990,0.721506)" gradientUnits="userSpaceOnUse" id="linearGradient1507" x1="68.708969" x2="68.708969" xlink:href="#linearGradient1511" y1="111.90047" y2="191.01146"/>
98 <linearGradient id="linearGradient1510" x1="0.55371535" x2="0.48209488" xlink:href="#linearGradient1806" y1="0.27680120" y2="1.4089690"/>
99 <linearGradient id="linearGradient1514" x1="0.49707603" x2="0.49707603" xlink:href="#linearGradient1520" y1="0.053910151" y2="0.40625000"/>
100 <radialGradient id="radialGradient1515" xlink:href="#linearGradient1511"/>
101 <linearGradient id="linearGradient1516" x1="0.51567942" x2="0.53310102" xlink:href="#linearGradient1517" y1="0.76666665" y2="-0.10000000"/>
102 <linearGradient id="linearGradient1521" xlink:href="#linearGradient1792"/>
103 <radialGradient cx="0.50522649" cy="0.54545456" fx="0.50871080" fy="0.26136363" id="radialGradient1950" r="0.38421080" xlink:href="#linearGradient1792"/>
104 <linearGradient id="linearGradient1522" xlink:href="#linearGradient1518"/>
105 <linearGradient id="linearGradient1599" xlink:href="#linearGradient1792"/>
106 <linearGradient id="linearGradient2352" x1="0.50522649" x2="0.50522649" xlink:href="#linearGradient1792" y1="1.8974513" y2="0.32051283"/>
107 <linearGradient id="linearGradient1497" xlink:href="#linearGradient1492"/>
108 </defs>
109 <sodipodi:namedview bordercolor="#666666" borderopacity="1.0" gridspacingx="2.5000000mm" gridspacingy="2.5000000mm" id="base" inkscape:cx="156.35533" inkscape:cy="126.76260" inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:window-height="501" inkscape:window-width="599" inkscape:window-x="265" inkscape:window-y="122" inkscape:zoom="1.2011993" pagecolor="#ffffff" showgrid="false" snaptogrid="false"/>
110 <g id="g1621" style="fill:#ffffff;fill-opacity:0.20430107;" transform="matrix(1.056550,0.000000,0.000000,1.056550,-132.2439,88.48814)">
111 <path d="M 158.06250,-77.656250 C 150.33842,-77.636797 145.44083,-69.199281 146.50263,-62.129272 C 146.31518,-52.347100 146.19816,-42.563767 146.03125,-32.781250 C 138.77736,-30.499103 134.85098,-22.678344 135.57329,-15.403545 C 136.11802,-3.9029094 138.14866,7.4720113 139.48318,18.898801 C 140.44347,23.963266 140.47980,29.388446 142.56319,34.132790 C 145.86543,39.628238 152.90598,40.529305 158.71739,39.905842 C 191.41553,40.062947 224.11447,40.054030 256.81250,39.875000 C 263.43388,36.980208 264.71813,29.043726 265.34933,22.646580 C 267.37683,9.1198459 269.91467,-4.3342879 271.45758,-17.930690 C 272.16212,-25.113770 265.70267,-29.565231 262.06495,-33.893679 C 261.15574,-40.218455 262.05399,-46.652921 261.36659,-53.015204 C 261.21848,-57.975877 260.14178,-64.521742 254.20179,-65.459786 C 248.53755,-66.553586 242.71560,-65.584010 236.98918,-66.020283 C 228.39904,-66.107275 219.80889,-66.194261 211.21875,-66.281250 C 205.29983,-69.099380 203.03646,-77.639836 195.72328,-77.801518 C 183.17051,-77.714934 170.61219,-78.111226 158.06250,-77.656250 z " id="path1559" style="fill-rule:evenodd;stroke-width:1.2500000;stroke-opacity:0.33962265;fill:#ffffff;fill-opacity:0.20430107;"/>
112 <path d="M 159.18750,-80.218750 C 150.48428,-80.838790 144.00999,-72.453178 144.11020,-64.254369 C 143.11939,-55.185354 144.07536,-45.992549 143.13363,-36.949168 C 138.04231,-29.926366 131.27934,-22.686941 133.07476,-12.723316 C 134.58995,2.5737368 136.91553,17.787633 138.90625,33.031250 C 142.42615,40.907408 151.49988,43.202015 159.36983,42.121944 C 192.40096,42.492716 225.43715,42.739921 258.46875,42.281250 C 268.88857,35.112424 267.93871,21.299242 270.00049,10.231906 C 271.27288,0.13302302 273.18321,-9.9475589 274.00945,-20.064209 C 273.34232,-28.182409 263.86174,-32.418893 264.47218,-40.850023 C 263.32975,-48.961625 265.74021,-59.212401 259.49201,-65.446312 C 251.23151,-70.897196 240.86542,-68.061580 231.59153,-68.904519 C 224.70096,-69.921717 216.33317,-67.112713 210.48638,-70.821698 C 205.17991,-76.745140 198.04305,-81.781910 189.67793,-80.269272 C 179.51446,-80.252431 169.35098,-80.235590 159.18750,-80.218750 z " id="path1573" style="fill-rule:evenodd;stroke-width:1.2500000;stroke-opacity:0.33962265;fill:#ffffff;fill-opacity:0.20430107;"/>
113 <path d="M 156.93750,-83.562500 C 148.47071,-82.628394 142.18560,-74.798771 141.31127,-66.614619 C 139.07719,-56.752443 141.26926,-46.463541 138.85705,-36.626083 C 134.93015,-31.182966 129.58151,-25.850344 130.46544,-18.524671 C 129.41574,-1.3542399 133.74672,15.485198 135.37623,32.475224 C 137.36469,40.898949 146.69001,45.462856 154.80951,45.128239 C 189.72134,45.756729 224.65378,45.974423 259.56595,45.137760 C 266.07960,42.104129 268.38738,34.444245 270.55919,28.161738 C 273.09625,17.158816 273.74056,5.8327491 275.69048,-5.2771292 C 276.35213,-10.552361 277.59576,-15.859126 277.51471,-21.164194 C 275.70845,-28.558585 268.28594,-33.767452 268.63587,-41.841151 C 267.68176,-49.393992 266.59069,-56.934002 265.12500,-64.406250 C 259.46495,-71.651339 249.49887,-72.170690 241.05096,-72.017609 C 232.16938,-72.365906 223.28782,-72.714204 214.40625,-73.062500 C 207.47201,-78.235969 199.93554,-84.650382 190.64723,-83.525120 C 179.41274,-83.790111 168.17272,-83.774900 156.93750,-83.562500 z " id="path1598" style="fill-rule:evenodd;stroke-width:1.2500000;stroke-opacity:0.33962265;fill:#ffffff;fill-opacity:0.20430107;"/>
114 <path d="M 159.46272,-75.628403 C 153.85497,-76.048570 148.97039,-71.364778 148.62954,-65.851779 C 148.25942,-55.724937 148.56005,-45.569167 148.46272,-35.430609 C 148.46272,-33.631955 148.46272,-31.833305 148.46272,-30.034653 C 143.53163,-30.746685 139.41403,-26.674828 138.27616,-22.143527 C 136.47571,-16.039411 138.47800,-9.7664554 138.93438,-3.6075384 C 140.32356,7.5515122 141.60903,18.725959 143.06334,29.875343 C 144.13526,34.611006 148.72294,38.398739 153.65729,37.652848 C 187.87052,37.614680 222.09048,37.729192 256.29952,37.595574 C 261.11343,35.982903 261.89033,30.225661 262.56719,25.827146 C 264.81056,11.935128 267.21895,-1.9342997 269.35756,-15.840659 C 269.90093,-21.665120 266.95201,-29.247111 260.42397,-30.011895 C 258.08379,-29.526034 259.62007,-32.828725 259.18146,-34.208072 C 259.10812,-41.961371 259.33115,-49.729480 259.06442,-57.473146 C 258.71232,-61.170556 255.30273,-64.138338 251.57460,-63.472152 C 238.06086,-63.495388 224.54474,-63.425673 211.03249,-63.507025 C 204.05055,-64.543769 203.56239,-74.556784 196.58046,-75.593530 C 184.20985,-75.674630 171.83483,-75.605353 159.46272,-75.628403 z " id="path963" style="fill-rule:evenodd;stroke-width:1.2500000;stroke-opacity:0.33962265;fill:#ffffff;fill-opacity:0.20430107;"/>
115 </g>
116 <path d="M 27.173984,98.211833 L 27.173984,26.986457 C 27.173984,19.788368 30.722756,14.591369 38.179233,14.591369 L 74.626759,14.591369 C 82.083245,14.591369 82.987870,26.749499 90.444357,26.749499 L 131.96554,26.749499 C 135.33208,26.749499 137.89713,30.231840 137.89713,34.233174 L 137.89713,98.211833 L 27.173984,98.211833 z " id="path1502" sodipodi:nodetypes="cczzzzzcc" style="fill:url(#linearGradient1514);fill-rule:evenodd;stroke:#565248;stroke-width:1.2500000;stroke-opacity:0.33962265;"/>
117 <path d="M 82.055313 175.83524 A 56.143108 56.143108 0 1 0 -30.230904,175.83524 A 56.143108 56.143108 0 1 0 82.055313 175.83524 z" id="path1809" sodipodi:cx="25.912205" sodipodi:cy="175.83524" sodipodi:rx="56.143108" sodipodi:ry="56.143108" sodipodi:type="arc" style="fill:url(#radialGradient1505);fill-opacity:1;fill-rule:evenodd;stroke-width:1.0000000pt;" transform="matrix(1.442331,0.000000,0.000000,0.353388,43.56779,62.11168)"/>
118 <g id="g1527" style="fill-opacity:0.037735824;" transform="matrix(0.926940,0.000000,0.000000,1.039779,-57.30231,-49.08006)">
119 <path d="M 77.776110,171.71342 L 83.600639,155.83612 C 84.135181,154.37897 88.524659,152.72237 92.914636,152.72237 L 207.01118,152.72237 C 210.89125,152.72237 213.36492,154.55589 213.99669,155.83612 L 221.83189,171.71342 C 223.23784,174.56248 218.51026,177.42373 211.59415,177.42373 L 88.013849,177.42373 C 81.097741,177.42373 76.724895,174.57895 77.776110,171.71342 z " id="path2363" sodipodi:nodetypes="czzzzzzzz" style="fill-rule:evenodd;stroke-width:1.2259742;stroke-opacity:0.28272250;"/>
120 <path d="M 81.210337,170.03356 L 86.757335,155.99569 C 87.266408,154.70737 91.446733,153.24269 95.627534,153.24269 L 204.28755,153.24269 C 207.98274,153.24269 210.33854,154.86378 210.94020,155.99569 L 218.40207,170.03356 C 219.74103,172.55255 215.23871,175.08232 208.65215,175.08232 L 90.960262,175.08232 C 84.373697,175.08232 80.209211,172.56711 81.210337,170.03356 z " id="path1525" sodipodi:nodetypes="czzzzzzzz" style="fill-rule:evenodd;stroke-width:1.2259742;stroke-opacity:0.28272250;"/>
121 <path d="M 88.078791,168.67401 L 93.070728,156.64279 C 93.528861,155.53862 97.290882,154.28331 101.05333,154.28331 L 198.84028,154.28331 C 202.16571,154.28331 204.28577,155.67268 204.82723,156.64279 L 211.54243,168.67401 C 212.74740,170.83292 208.69561,173.00107 202.76813,173.00107 L 96.853089,173.00107 C 90.925609,173.00107 87.177842,170.84540 88.078791,168.67401 z " id="path1526" sodipodi:nodetypes="czzzzzzzz" style="fill-rule:evenodd;stroke-width:1.2259742;stroke-opacity:0.28272250;"/>
122 </g>
123 <path d="M 117.78716,36.773767 L 117.78716,75.722650 L 117.78716,95.197088 L 117.78716,114.67154 L 100.01510,114.67154 L 82.243034,114.67154 L 64.470973,114.67154 L 46.698909,114.67154 L 46.698909,95.197088 L 46.698909,75.722650 L 46.775671,36.773767 L 82.243034,36.773767 L 117.78716,36.773767 z " id="rect900" sodipodi:nodetypes="ccccccccccccc" style="fill:url(#linearGradient1495);fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.22607063;stroke-opacity:0.36477986;"/>
124 <path d="M 301.30655,174.90867 L 299.27069,628.90434 L 743.08709,628.90434 L 743.34157,516.67783 C 733.41677,520.49506 633.15091,378.49417 506.92790,384.60173 C 380.59029,390.71484 413.27857,193.23136 301.30655,174.90867 z " id="path1500" sodipodi:nodetypes="cccczc" style="fill:url(#linearGradient1499);fill-opacity:1;fill-rule:evenodd;stroke-width:1.0000000pt;" transform="matrix(0.157267,0.000000,0.000000,0.157267,-0.685311,17.09000)"/>
125 <path d="M 16.340118,75.850997 L 21.660243,119.35397 C 22.148493,123.34642 26.157842,127.88541 30.167647,127.88541 L 134.38341,127.88541 C 137.92746,127.88541 140.18692,122.86168 140.76397,119.35397 L 147.92063,75.850997 C 149.20483,68.044749 144.88666,60.205100 138.56949,60.205100 L 25.691267,60.205100 C 19.374096,60.205100 15.379940,67.999588 16.340118,75.850997 z " id="path1501" sodipodi:nodetypes="czzzzzzzz" style="fill:url(#linearGradient1507);fill-rule:evenodd;stroke:url(#linearGradient1521);stroke-width:1.2519596;stroke-opacity:0.33962265;"/>
126 <path d="M 17.363760,74.771310 C 17.144790,75.718777 21.236974,66.419549 28.174951,66.419549 L 134.15847,66.419549 C 142.69349,66.419549 145.42542,75.718777 145.64440,74.771310 C 145.86338,73.823852 150.22438,60.734754 134.33482,60.734754 L 28.673341,60.734754 C 15.227487,60.734754 17.582722,73.823852 17.363760,74.771310 z " id="path1503" sodipodi:nodetypes="czzzzzz" style="fill:url(#linearGradient1516);fill-rule:evenodd;stroke-width:0.90415878pt;"/>
127</svg>
1280
=== modified file 'Folders/src/CMakeLists.txt'
--- Folders/src/CMakeLists.txt 2010-08-10 00:05:57 +0000
+++ Folders/src/CMakeLists.txt 2011-10-08 22:23:24 +0000
@@ -19,7 +19,7 @@
19add_definitions (-DMY_APPLET_VERSION="${VERSION_FOLDERS}")19add_definitions (-DMY_APPLET_VERSION="${VERSION_FOLDERS}")
20add_definitions (-DMY_APPLET_GETTEXT_DOMAIN="${GETTEXT_FOLDERS}")20add_definitions (-DMY_APPLET_GETTEXT_DOMAIN="${GETTEXT_FOLDERS}")
21add_definitions (-DMY_APPLET_DOCK_VERSION="${dock_version}")21add_definitions (-DMY_APPLET_DOCK_VERSION="${dock_version}")
22add_definitions (-DMY_APPLET_ICON_FILE="icon.svg")22add_definitions (-DMY_APPLET_ICON_FILE="icon.png")
23add_definitions (-DCD_APPLET_MULTI_INSTANCE="1")23add_definitions (-DCD_APPLET_MULTI_INSTANCE="1")
24### uncomment the following line to allow extended OpenGL drawing.24### uncomment the following line to allow extended OpenGL drawing.
25#add_definitions (-DGL_GLEXT_PROTOTYPES="1")25#add_definitions (-DGL_GLEXT_PROTOTYPES="1")
2626
=== modified file 'Folders/src/applet-config.c'
--- Folders/src/applet-config.c 2011-08-09 18:08:08 +0000
+++ Folders/src/applet-config.c 2011-10-08 22:23:24 +0000
@@ -28,9 +28,9 @@
28//\_________________ Here you have to get all your parameters from the conf file. Use the macros CD_CONFIG_GET_BOOLEAN, CD_CONFIG_GET_INTEGER, CD_CONFIG_GET_STRING, etc. myConfig has been reseted to 0 at this point. This function is called at the beginning of init and reload.28//\_________________ Here you have to get all your parameters from the conf file. Use the macros CD_CONFIG_GET_BOOLEAN, CD_CONFIG_GET_INTEGER, CD_CONFIG_GET_STRING, etc. myConfig has been reseted to 0 at this point. This function is called at the beginning of init and reload.
29CD_APPLET_GET_CONFIG_BEGIN29CD_APPLET_GET_CONFIG_BEGIN
30 myConfig.cDefaultTitle = CD_CONFIG_GET_STRING ("Icon", "name");30 myConfig.cDefaultTitle = CD_CONFIG_GET_STRING ("Icon", "name");
31 ///myConfig.cImageFile = CD_CONFIG_GET_STRING ("Icon", "image file");31 myConfig.cImageFile = CD_CONFIG_GET_STRING ("Icon", "image file");
32 myConfig.cDirPath = CD_CONFIG_GET_STRING ("Configuration", "dir path");32 myConfig.cDirPath = CD_CONFIG_GET_STRING ("Configuration", "dir path");
33 if (myConfig.cDirPath)33 if (myConfig.cDirPath) // transform the pah into an URI.
34 {34 {
35 if (*myConfig.cDirPath == '~')35 if (*myConfig.cDirPath == '~')
36 {36 {
@@ -47,7 +47,6 @@
47 }47 }
48 myConfig.bShowFiles = CD_CONFIG_GET_BOOLEAN_WITH_DEFAULT ("Configuration", "show files", TRUE);48 myConfig.bShowFiles = CD_CONFIG_GET_BOOLEAN_WITH_DEFAULT ("Configuration", "show files", TRUE);
49 myConfig.cRenderer = CD_CONFIG_GET_STRING ("Configuration", "renderer");49 myConfig.cRenderer = CD_CONFIG_GET_STRING ("Configuration", "renderer");
50 //myConfig.iNbIcons = CD_CONFIG_GET_INTEGER ("Configuration", "nb icons");
51 myConfig.iSortType = CD_CONFIG_GET_INTEGER ("Configuration", "sort type");50 myConfig.iSortType = CD_CONFIG_GET_INTEGER ("Configuration", "sort type");
52 myConfig.bFoldersFirst = CD_CONFIG_GET_BOOLEAN ("Configuration", "folders first");51 myConfig.bFoldersFirst = CD_CONFIG_GET_BOOLEAN ("Configuration", "folders first");
53 myConfig.bShowHiddenFiles = CD_CONFIG_GET_BOOLEAN ("Configuration", "show hidden");52 myConfig.bShowHiddenFiles = CD_CONFIG_GET_BOOLEAN ("Configuration", "show hidden");
@@ -60,7 +59,7 @@
6059
61//\_________________ Here you have to free all ressources allocated for myConfig. This one will be reseted to 0 at the end of this function. This function is called right before you get the applet's config, and when your applet is stopped, in the end.60//\_________________ Here you have to free all ressources allocated for myConfig. This one will be reseted to 0 at the end of this function. This function is called right before you get the applet's config, and when your applet is stopped, in the end.
62CD_APPLET_RESET_CONFIG_BEGIN61CD_APPLET_RESET_CONFIG_BEGIN
63 ///g_free (myConfig.cImageFile);62 g_free (myConfig.cImageFile);
64 g_free (myConfig.cDefaultTitle);63 g_free (myConfig.cDefaultTitle);
65 64
66 if (myConfig.cDirPath)65 if (myConfig.cDirPath)
6766
=== modified file 'Folders/src/applet-init.c'
--- Folders/src/applet-init.c 2011-08-09 18:08:08 +0000
+++ Folders/src/applet-init.c 2011-10-08 22:23:24 +0000
@@ -80,24 +80,42 @@
8080
81//\___________ Here is where you initiate your applet. myConfig is already set at this point, and also myIcon, myContainer, myDock, myDesklet (and myDrawContext if you're in dock mode). The macro CD_APPLET_MY_CONF_FILE and CD_APPLET_MY_KEY_FILE can give you access to the applet's conf-file and its corresponding key-file (also available during reload). If you're in desklet mode, myDrawContext is still NULL, and myIcon's buffers has not been filled, because you may not need them then (idem when reloading).81//\___________ Here is where you initiate your applet. myConfig is already set at this point, and also myIcon, myContainer, myDock, myDesklet (and myDrawContext if you're in dock mode). The macro CD_APPLET_MY_CONF_FILE and CD_APPLET_MY_KEY_FILE can give you access to the applet's conf-file and its corresponding key-file (also available during reload). If you're in desklet mode, myDrawContext is still NULL, and myIcon's buffers has not been filled, because you may not need them then (idem when reloading).
82CD_APPLET_INIT_BEGIN82CD_APPLET_INIT_BEGIN
83 83
84 //\_______________ On definit le dessin de l'icone principale.84 if (myConfig.cDirPath == NULL)
85 _set_icon_label (myApplet);
86
87 myIcon->iSubdockViewType = myConfig.iSubdockViewType;
88 if (myDock && myConfig.iSubdockViewType == 0)
89 CD_APPLET_SET_DEFAULT_IMAGE_ON_MY_ICON_IF_NONE;
90 ///CD_APPLET_SET_USER_IMAGE_ON_MY_ICON (myConfig.cImageFile, MY_APPLET_ICON_FILE);
91
92 //\_______________ On lance la tache recuperation des fichiers.
93 _set_comparaison_func (myApplet);
94 if (myConfig.bShowFiles)
95 {85 {
96 cd_folders_start (myApplet);86 CD_APPLET_SET_IMAGE_ON_MY_ICON (myConfig.cImageFile);
87 cairo_dock_show_temporary_dialog_with_icon (D_("Open the configuration of the applet to choose a folder to import."),
88 myIcon, myContainer,
89 8000.,
90 myConfig.iSubdockViewType == 0 ? "same icon" : MY_APPLET_SHARE_DATA_DIR"/"MY_APPLET_ICON_FILE);
97 }91 }
98 else if (myDesklet) // comme on ne charge pas les icones, on met un renderer "simple" sur notre desklet.92 else
99 {93 {
100 CD_APPLET_SET_DESKLET_RENDERER ("Simple");94 //\_______________ On lance la tache recuperation des fichiers.
95 _set_comparaison_func (myApplet);
96 if (myConfig.bShowFiles)
97 {
98 cd_folders_start (myApplet);
99 }
100
101 //\_______________ set the icon rendering
102 if (myDock) // dock mode: set the image or the sub-dock renderer
103 {
104 cairo_dock_set_subdock_content_renderer (myIcon, myConfig.iSubdockViewType);
105 if (myConfig.iSubdockViewType == 0)
106 CD_APPLET_SET_IMAGE_ON_MY_ICON (myConfig.cImageFile);
107 }
108 else // desklet mode: set the image if we don't show the files.
109 {
110 if (! myConfig.bShowFiles)
111 {
112 CD_APPLET_SET_DESKLET_RENDERER ("Simple");
113 CD_APPLET_SET_IMAGE_ON_MY_ICON (myConfig.cImageFile);
114 }
115 }
116
117 //\_______________ set the label
118 _set_icon_label (myApplet);
101 }119 }
102 120
103 //\_______________ On enregistre nos notifications.121 //\_______________ On enregistre nos notifications.
@@ -125,29 +143,47 @@
125 {143 {
126 //\_______________ On detruit les icones des fichiers.144 //\_______________ On detruit les icones des fichiers.
127 cd_folders_free_all_data (myApplet);145 cd_folders_free_all_data (myApplet);
128 146
129 //\_______________ On met a jour l'icone principale.147 if (myConfig.cDirPath == NULL)
130 _set_icon_label (myApplet);148 {
131 149 CD_APPLET_SET_IMAGE_ON_MY_ICON (myConfig.cImageFile);
132 myIcon->iSubdockViewType = myConfig.iSubdockViewType;150 cairo_dock_show_temporary_dialog_with_icon (D_("Open the configuration of the applet to choose a folder to import."),
133 if (myDock && myConfig.iSubdockViewType == 0)151 myIcon, myContainer,
134 CD_APPLET_SET_DEFAULT_IMAGE_ON_MY_ICON_IF_NONE;152 8000.,
135 ///CD_APPLET_SET_USER_IMAGE_ON_MY_ICON (myConfig.cImageFile, MY_APPLET_ICON_FILE);153 myConfig.iSubdockViewType == 0 ? "same icon" : MY_APPLET_SHARE_DATA_DIR"/"MY_APPLET_ICON_FILE);
136 154 }
137 //\_______________ On charge les icones dans un sous-dock.155 else
138 _set_comparaison_func (myApplet);156 {
139 if (myConfig.bShowFiles)157 //\_______________ On charge les icones dans un sous-dock.
140 {158 _set_comparaison_func (myApplet);
141 cd_folders_start (myApplet);159 if (myConfig.bShowFiles)
142 }160 {
143 else if (myDock && myIcon->pSubDock) // on veut un comportement de type lanceur, donc on ne veut pas d'un sous-dock vide.161 cd_folders_start (myApplet);
144 {162 }
145 cairo_dock_destroy_dock (myIcon->pSubDock, myIcon->cName);163 else if (myDock && myIcon->pSubDock) // dans ce cas on veut un comportement de type lanceur, donc on ne veut pas d'un sous-dock vide.
146 myIcon->pSubDock = NULL;164 {
147 }165 cairo_dock_destroy_dock (myIcon->pSubDock, myIcon->cName);
148 else if (myDesklet)166 myIcon->pSubDock = NULL;
149 {167 }
150 CD_APPLET_SET_DESKLET_RENDERER ("Simple");168
169 //\_______________ set the icon rendering
170 if (myDock) // dock mode: set the image or the sub-dock renderer
171 {
172 cairo_dock_set_subdock_content_renderer (myIcon, myConfig.iSubdockViewType);
173 if (myConfig.iSubdockViewType == 0)
174 CD_APPLET_SET_IMAGE_ON_MY_ICON (myConfig.cImageFile);
175 }
176 else // desklet mode: set the image if we don't show the files.
177 {
178 if (! myConfig.bShowFiles)
179 {
180 CD_APPLET_SET_DESKLET_RENDERER ("Simple");
181 CD_APPLET_SET_IMAGE_ON_MY_ICON (myConfig.cImageFile);
182 }
183 }
184
185 //\_______________ set the label
186 _set_icon_label (myApplet);
151 }187 }
152 }188 }
153CD_APPLET_RELOAD_END189CD_APPLET_RELOAD_END
154190
=== modified file 'Folders/src/applet-notifications.c'
--- Folders/src/applet-notifications.c 2011-08-09 18:08:08 +0000
+++ Folders/src/applet-notifications.c 2011-10-08 22:23:24 +0000
@@ -132,11 +132,11 @@
132132
133 pLabel = gtk_label_new (NULL);133 pLabel = gtk_label_new (NULL);
134 gtk_label_set_use_markup (GTK_LABEL (pLabel), TRUE);134 gtk_label_set_use_markup (GTK_LABEL (pLabel), TRUE);
135 g_string_printf (sInfo, "<u>Size</u> : %lld bytes", iSize);135 g_string_printf (sInfo, "<u>Size</u> : %"G_GUINT64_FORMAT" bytes", iSize);
136 if (iSize > 1024*1024)136 if (iSize > 1024*1024)
137 g_string_append_printf (sInfo, " (%.1f Mo)", 1. * iSize / 1024 / 1024);137 g_string_append_printf (sInfo, " (%.1f MB)", 1. * iSize / 1024 / 1024);
138 else if (iSize > 1024)138 else if (iSize > 1024)
139 g_string_append_printf (sInfo, " (%.1f Ko)", 1. * iSize / 1024);139 g_string_append_printf (sInfo, " (%.1f KB)", 1. * iSize / 1024);
140 gtk_label_set_markup (GTK_LABEL (pLabel), sInfo->str);140 gtk_label_set_markup (GTK_LABEL (pLabel), sInfo->str);
141 gtk_container_add (GTK_CONTAINER (pVBox), pLabel);141 gtk_container_add (GTK_CONTAINER (pVBox), pLabel);
142142
@@ -428,11 +428,19 @@
428CD_APPLET_ON_BUILD_MENU_END428CD_APPLET_ON_BUILD_MENU_END
429429
430430
431static void _on_answer_import (int iClickedButton, GtkWidget *pInteractiveWidget, const gchar *cReceivedData, CairoDialog *pDialog)431typedef struct {
432 gchar *cReceivedData;
433 double fOrder;
434} CDDropData;
435
436static void _on_answer_import (int iClickedButton, GtkWidget *pInteractiveWidget, CDDropData *data, CairoDialog *pDialog)
432{437{
433 cd_debug ("%s (%d)", __func__, iClickedButton);438 cd_debug ("%s (%d)", __func__, iClickedButton);
439 const gchar *cReceivedData = data->cReceivedData;
440 double fOrder = data->fOrder;
434 gboolean bImportFiles = (iClickedButton == 0 || iClickedButton == -1); // ok or Enter.441 gboolean bImportFiles = (iClickedButton == 0 || iClickedButton == -1); // ok or Enter.
435 442
443 // add a new conf file for the "Folders" module, with proper values.
436 CairoDockModule *pModule = cairo_dock_find_module_from_name ("Folders");444 CairoDockModule *pModule = cairo_dock_find_module_from_name ("Folders");
437 g_return_if_fail (pModule != NULL);445 g_return_if_fail (pModule != NULL);
438446
@@ -440,29 +448,37 @@
440 cairo_dock_update_conf_file (cConfFilePath,448 cairo_dock_update_conf_file (cConfFilePath,
441 G_TYPE_STRING, "Configuration", "dir path", cReceivedData,449 G_TYPE_STRING, "Configuration", "dir path", cReceivedData,
442 G_TYPE_BOOLEAN, "Configuration", "show files", bImportFiles,450 G_TYPE_BOOLEAN, "Configuration", "show files", bImportFiles,
451 G_TYPE_DOUBLE, "Icon", "order", fOrder,
443 G_TYPE_INVALID);452 G_TYPE_INVALID);
444453
454 // instanciate the module from this conf file.
445 CairoDockModuleInstance *pNewInstance = cairo_dock_instanciate_module (pModule, cConfFilePath); // prend le 'cConfFilePath'.455 CairoDockModuleInstance *pNewInstance = cairo_dock_instanciate_module (pModule, cConfFilePath); // prend le 'cConfFilePath'.
446 if (pNewInstance != NULL && pNewInstance->pDock)456 if (pNewInstance != NULL && pNewInstance->pDock)
447 {457 {
448 cairo_dock_update_dock_size (pNewInstance->pDock);458 cairo_dock_update_dock_size (pNewInstance->pDock);
449 }459 }
450460
461 // show a success message on the new icon.
451 if (pNewInstance != NULL)462 if (pNewInstance != NULL)
452 cairo_dock_show_temporary_dialog_with_icon (D_("The folder has been imported."),463 cairo_dock_show_temporary_dialog_with_icon (D_("The folder has been imported."),
453 pNewInstance->pIcon, pNewInstance->pContainer,464 pNewInstance->pIcon, pNewInstance->pContainer,
454 5000,465 5000,
455 MY_APPLET_SHARE_DATA_DIR"/"MY_APPLET_ICON_FILE); // not "same icon" because the icon may not be loaded yet (eg. stack or emblem icon).466 MY_APPLET_SHARE_DATA_DIR"/"MY_APPLET_ICON_FILE); // not "same icon" because the icon may not be loaded yet (eg. stack or emblem icon).
456467
468 // if the module has just been activated for the first time, write it down so that it is loaded on the next startup.
457 if (pModule->pInstancesList && pModule->pInstancesList->next == NULL) // module nouvellement active.469 if (pModule->pInstancesList && pModule->pInstancesList->next == NULL) // module nouvellement active.
458 {470 {
459 cairo_dock_write_active_modules ();471 cairo_dock_write_active_modules ();
460 }472 }
461}473}
474static void _free_dialog_data (CDDropData *data)
475{
476 g_free (data->cReceivedData);
477 g_free (data);
478}
462gboolean cd_folders_on_drop_data (gpointer data, const gchar *cReceivedData, Icon *icon, double fOrder, CairoContainer *pContainer)479gboolean cd_folders_on_drop_data (gpointer data, const gchar *cReceivedData, Icon *icon, double fOrder, CairoContainer *pContainer)
463{480{
464 //g_print ("Folders received '%s'\n", cReceivedData);481 //g_print ("Folders received '%s'\n", cReceivedData);
465
466 if (icon != NULL || fOrder == CAIRO_DOCK_LAST_ORDER) // drop on an icon or outside of icons.482 if (icon != NULL || fOrder == CAIRO_DOCK_LAST_ORDER) // drop on an icon or outside of icons.
467 return CAIRO_DOCK_LET_PASS_NOTIFICATION;483 return CAIRO_DOCK_LET_PASS_NOTIFICATION;
468 484
@@ -474,22 +490,42 @@
474 490
475 if (g_file_test (cPath, G_FILE_TEST_IS_DIR)) // it's a folder, let's add a new instance of the applet that will handle it.491 if (g_file_test (cPath, G_FILE_TEST_IS_DIR)) // it's a folder, let's add a new instance of the applet that will handle it.
476 {492 {
477 //g_print (" ajout d'un repertoire...\n");493 // search the closest icon to the drop point (we want to place the dialog on it).
478 if (icon == NULL)494 GList *pIconsList = NULL, *ic;
495 if (CAIRO_DOCK_IS_DOCK (pContainer))
496 pIconsList = CAIRO_DOCK (pContainer)->icons;
497 else if (CAIRO_DOCK_IS_DESKLET (pContainer))
498 pIconsList = CAIRO_DESKLET (pContainer)->icons;
499 Icon *pIcon = NULL;
500 for (ic = pIconsList; ic != NULL; ic = ic->next)
501 {
502 icon = ic->data;
503 if (icon->fOrder > fOrder)
504 {
505 pIcon = icon;
506 break;
507 }
508 }
509 if (pIcon == NULL)
479 {510 {
480 if (CAIRO_DOCK_IS_DOCK (pContainer))511 if (CAIRO_DOCK_IS_DOCK (pContainer))
481 icon = cairo_dock_get_dialogless_icon_full (CAIRO_DOCK (pContainer));512 pIcon = cairo_dock_get_dialogless_icon_full (CAIRO_DOCK (pContainer));
482 else513 else
483 icon = cairo_dock_get_dialogless_icon ();514 pIcon = cairo_dock_get_dialogless_icon ();
484 }515 }
516
517 // ask the user whether (s)he wants to import the folder's content.
518 CDDropData *data = g_new0 (CDDropData, 1);
519 data->cReceivedData = g_strdup (cReceivedData);
520 data->fOrder = fOrder;
485 cairo_dock_show_dialog_full (D_("Do you want to import the content of the folder too?"),521 cairo_dock_show_dialog_full (D_("Do you want to import the content of the folder too?"),
486 icon, pContainer,522 pIcon, pContainer,
487 0,523 0,
488 MY_APPLET_SHARE_DATA_DIR"/"MY_APPLET_ICON_FILE,524 MY_APPLET_SHARE_DATA_DIR"/"MY_APPLET_ICON_FILE,
489 NULL,525 NULL,
490 (CairoDockActionOnAnswerFunc) _on_answer_import,526 (CairoDockActionOnAnswerFunc) _on_answer_import,
491 g_strdup (cReceivedData),527 data,
492 (GFreeFunc)g_free);528 (GFreeFunc)_free_dialog_data);
493 529
494 return CAIRO_DOCK_INTERCEPT_NOTIFICATION;530 return CAIRO_DOCK_INTERCEPT_NOTIFICATION;
495 }531 }
496532
=== modified file 'Folders/src/applet-struct.h'
--- Folders/src/applet-struct.h 2011-08-09 18:08:08 +0000
+++ Folders/src/applet-struct.h 2011-10-08 22:23:24 +0000
@@ -25,7 +25,7 @@
2525
26//\___________ structure containing the applet's configuration parameters.26//\___________ structure containing the applet's configuration parameters.
27struct _AppletConfig {27struct _AppletConfig {
28 ///gchar *cImageFile;28 gchar *cImageFile;
29 gchar *cDefaultTitle;29 gchar *cDefaultTitle;
30 gchar *cDirPath;30 gchar *cDirPath;
31 gboolean bShowFiles;31 gboolean bShowFiles;
3232
=== modified file 'GMenu/data/GMenu.conf.in'
--- GMenu/data/GMenu.conf.in 2011-08-09 18:08:08 +0000
+++ GMenu/data/GMenu.conf.in 2011-10-08 22:23:24 +0000
@@ -59,7 +59,7 @@
59#b Is detached from the dock59#b Is detached from the dock
60initially detached=false60initially detached=false
61#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:61#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:
62#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=utility)}62#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=Utility)}
63accessibility=063accessibility=0
64#b Should be visible on all desktops?64#b Should be visible on all desktops?
65sticky=true65sticky=true
6666
=== modified file 'Impulse/data/Impulse.conf.in'
--- Impulse/data/Impulse.conf.in 2011-08-09 18:08:08 +0000
+++ Impulse/data/Impulse.conf.in 2011-10-08 22:23:24 +0000
@@ -58,7 +58,7 @@
58#b Is detached from the dock58#b Is detached from the dock
59initially detached=false59initially detached=false
60#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:60#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:
61#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=utility)}61#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=Utility)}
62accessibility=062accessibility=0
63#b Should be visible on all desktops?63#b Should be visible on all desktops?
64sticky=true64sticky=true
6565
=== modified file 'Impulse/src/Impulse.c'
--- Impulse/src/Impulse.c 2011-08-09 18:08:08 +0000
+++ Impulse/src/Impulse.c 2011-10-08 22:23:24 +0000
@@ -180,14 +180,14 @@
180180
181 switch (pa_context_get_state (context))181 switch (pa_context_get_state (context))
182 {182 {
183 case PA_CONTEXT_TERMINATED:
184 case PA_CONTEXT_FAILED:
185 return IM_FAILED;
183 case PA_CONTEXT_CONNECTING:186 case PA_CONTEXT_CONNECTING:
184 case PA_CONTEXT_AUTHORIZING:187 case PA_CONTEXT_AUTHORIZING:
185 case PA_CONTEXT_SETTING_NAME:188 case PA_CONTEXT_SETTING_NAME:
189 default: // default seems to be ok...
186 return IM_SUCCESS;190 return IM_SUCCESS;
187 case PA_CONTEXT_TERMINATED:
188 case PA_CONTEXT_FAILED:
189 default:
190 return IM_FAILED;
191 }191 }
192}192}
193193
194194
=== modified file 'Impulse/src/applet-config.c'
--- Impulse/src/applet-config.c 2011-08-09 18:08:08 +0000
+++ Impulse/src/applet-config.c 2011-10-08 22:23:24 +0000
@@ -27,6 +27,8 @@
27//\_________________ Here you have to get all your parameters from the conf file. Use the macros CD_CONFIG_GET_BOOLEAN, CD_CONFIG_GET_INTEGER, CD_CONFIG_GET_STRING, etc. myConfig has been reseted to 0 at this point. This function is called at the beginning of init and reload.27//\_________________ Here you have to get all your parameters from the conf file. Use the macros CD_CONFIG_GET_BOOLEAN, CD_CONFIG_GET_INTEGER, CD_CONFIG_GET_STRING, etc. myConfig has been reseted to 0 at this point. This function is called at the beginning of init and reload.
28CD_APPLET_GET_CONFIG_BEGIN28CD_APPLET_GET_CONFIG_BEGIN
29 myConfig.cIconAnimation = CD_CONFIG_GET_STRING ("Configuration", "animation");29 myConfig.cIconAnimation = CD_CONFIG_GET_STRING ("Configuration", "animation");
30 if (myConfig.cIconAnimation == NULL)
31 myConfig.cIconAnimation = g_strdup ("default");
30 myConfig.fMinValueToAnim = CD_CONFIG_GET_DOUBLE_WITH_DEFAULT ("Configuration", "sensitivity", 0.25) / 3; // PER 332 myConfig.fMinValueToAnim = CD_CONFIG_GET_DOUBLE_WITH_DEFAULT ("Configuration", "sensitivity", 0.25) / 3; // PER 3
31 myConfig.iNbAnimations = CD_CONFIG_GET_INTEGER_WITH_DEFAULT ("Configuration", "nb animations", 1);33 myConfig.iNbAnimations = CD_CONFIG_GET_INTEGER_WITH_DEFAULT ("Configuration", "nb animations", 1);
32 myConfig.iLoopTime = CD_CONFIG_GET_INTEGER_WITH_DEFAULT ("Configuration", "refresh", 250);34 myConfig.iLoopTime = CD_CONFIG_GET_INTEGER_WITH_DEFAULT ("Configuration", "refresh", 250);
3335
=== modified file 'Impulse/src/applet-impulse.c'
--- Impulse/src/applet-impulse.c 2011-08-09 18:08:08 +0000
+++ Impulse/src/applet-impulse.c 2011-10-08 22:23:24 +0000
@@ -132,7 +132,7 @@
132 {132 {
133 //cd_debug ("Impulse: animation on this icon=%s", pIcon->cName);133 //cd_debug ("Impulse: animation on this icon=%s", pIcon->cName);
134 cairo_dock_request_icon_animation (pIcon,134 cairo_dock_request_icon_animation (pIcon,
135 myData.pSharedMemory->pDock,135 CAIRO_CONTAINER (myData.pSharedMemory->pDock),
136 myData.pSharedMemory->cIconAnimation,136 myData.pSharedMemory->cIconAnimation,
137 myData.pSharedMemory->iNbAnimations);137 myData.pSharedMemory->iNbAnimations);
138 bHasNotBeenAnimated = FALSE;138 bHasNotBeenAnimated = FALSE;
139139
=== modified file 'Indicator-applet/indicator-applet.c'
--- Indicator-applet/indicator-applet.c 2011-04-20 20:46:51 +0000
+++ Indicator-applet/indicator-applet.c 2011-10-08 22:23:24 +0000
@@ -33,7 +33,7 @@
33{33{
34 if (pIndicator->pMenu == NULL)34 if (pIndicator->pMenu == NULL)
35 {35 {
36 pIndicator->pMenu = dbusmenu_gtkmenu_new (pIndicator->cBusName, pIndicator->cMenuObject);36 pIndicator->pMenu = dbusmenu_gtkmenu_new ((gchar*)pIndicator->cBusName, (gchar*)pIndicator->cMenuObject); // the cast is unorthodox, but the function definition is clumsy (it should require 2 const gchar*, since it actually duplicates the strings).
37 if (pIndicator->pMenu != NULL)37 if (pIndicator->pMenu != NULL)
38 {38 {
39 DbusmenuGtkClient * client = dbusmenu_gtkmenu_get_client (pIndicator->pMenu);39 DbusmenuGtkClient * client = dbusmenu_gtkmenu_get_client (pIndicator->pMenu);
@@ -111,8 +111,8 @@
111 pIndicator->cServiceInterface = cServiceInterface;111 pIndicator->cServiceInterface = cServiceInterface;
112 pIndicator->cMenuObject = cMenuObject;112 pIndicator->cMenuObject = cMenuObject;
113 113
114 pIndicator->service = indicator_service_manager_new_version (cBusName, INDICATOR_APPLET_DBUS_VERSION);114 pIndicator->service = indicator_service_manager_new_version ((gchar*)cBusName, INDICATOR_APPLET_DBUS_VERSION);
115 g_signal_connect (G_OBJECT(pIndicator->service), INDICATOR_SERVICE_MANAGER_SIGNAL_CONNECTION_CHANGE, G_CALLBACK(connection_changed), pIndicator); // on sera appele une fois la connexion etablie.115 g_signal_connect (G_OBJECT(pIndicator->service), INDICATOR_SERVICE_MANAGER_SIGNAL_CONNECTION_CHANGE, G_CALLBACK(connection_changed), pIndicator); // on sera appele une fois la connexion etablie. // pour le cast, cf plus haut.
116 116
117 return pIndicator;117 return pIndicator;
118}118}
@@ -168,7 +168,12 @@
168 }168 }
169 169
170 cd_debug ("set %s", cIconPathFallback ? cIconPathFallback : cIconName);170 cd_debug ("set %s", cIconPathFallback ? cIconPathFallback : cIconName);
171 CD_APPLET_SET_IMAGE_ON_MY_ICON (cIconPathFallback ? cIconPathFallback : cIconName);171 //CD_APPLET_SET_IMAGE_ON_MY_ICON (cIconPathFallback ? cIconPathFallback : cIconName);
172 cairo_dock_set_image_on_icon_with_default (myDrawContext,
173 cIconPathFallback ? cIconPathFallback : cIconName,
174 myIcon,
175 myContainer,
176 myApplet->pModule->pVisitCard->cIconFilePath);
172 177
173 g_free (tmp_icon_name);178 g_free (tmp_icon_name);
174 g_free (cIconPath);179 g_free (cIconPath);
175180
=== modified file 'MeMenu/data/MeMenu.conf.in'
--- MeMenu/data/MeMenu.conf.in 2011-08-09 18:08:08 +0000
+++ MeMenu/data/MeMenu.conf.in 2011-10-08 22:23:24 +0000
@@ -56,7 +56,7 @@
56#b Is detached from the dock56#b Is detached from the dock
57initially detached=false57initially detached=false
58#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:58#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:
59#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=utility)}59#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=Utility)}
60accessibility=060accessibility=0
61#b Should be visible on all desktops?61#b Should be visible on all desktops?
62sticky=true62sticky=true
6363
=== modified file 'Messaging-Menu/data/Messaging-Menu.conf.in'
--- Messaging-Menu/data/Messaging-Menu.conf.in 2011-08-09 18:08:08 +0000
+++ Messaging-Menu/data/Messaging-Menu.conf.in 2011-10-08 22:23:24 +0000
@@ -57,7 +57,7 @@
57#b Is detached from the dock57#b Is detached from the dock
58initially detached=false58initially detached=false
59#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:59#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:
60#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=utility)}60#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=Utility)}
61accessibility=061accessibility=0
62#b Should be visible on all desktops?62#b Should be visible on all desktops?
63sticky=true63sticky=true
6464
=== modified file 'Messaging-Menu/src/applet-config.c'
--- Messaging-Menu/src/applet-config.c 2010-08-10 00:05:57 +0000
+++ Messaging-Menu/src/applet-config.c 2011-10-08 22:23:24 +0000
@@ -33,13 +33,10 @@
3333
34//\_________________ Here you have to free all ressources allocated for myConfig. This one will be reseted to 0 at the end of this function. This function is called right before you get the applet's config, and when your applet is stopped, in the end.34//\_________________ Here you have to free all ressources allocated for myConfig. This one will be reseted to 0 at the end of this function. This function is called right before you get the applet's config, and when your applet is stopped, in the end.
35CD_APPLET_RESET_CONFIG_BEGIN35CD_APPLET_RESET_CONFIG_BEGIN
36 g_free (myConfig.cAnimationName);
37 36
38CD_APPLET_RESET_CONFIG_END37CD_APPLET_RESET_CONFIG_END
3938
40
41//\_________________ Here you have to free all ressources allocated for myData. This one will be reseted to 0 at the end of this function. This function is called when your applet is stopped, in the very end.39//\_________________ Here you have to free all ressources allocated for myData. This one will be reseted to 0 at the end of this function. This function is called when your applet is stopped, in the very end.
42CD_APPLET_RESET_DATA_BEGIN40CD_APPLET_RESET_DATA_BEGIN
43 41
44
45CD_APPLET_RESET_DATA_END42CD_APPLET_RESET_DATA_END
4643
=== modified file 'Messaging-Menu/src/applet-menu.c'
--- Messaging-Menu/src/applet-menu.c 2011-08-09 18:08:08 +0000
+++ Messaging-Menu/src/applet-menu.c 2011-10-08 22:23:24 +0000
@@ -41,12 +41,20 @@
4141
42/* Sets the icon when it changes. */42/* Sets the icon when it changes. */
43static void43static void
44#if (INDICATOR_OLD_NAMES == 0)
45application_icon_change_cb (DbusmenuMenuitem * mi, gchar * prop, GVariant * value, gpointer user_data)
46#else
44application_icon_change_cb (DbusmenuMenuitem * mi, gchar * prop, GValue * value, gpointer user_data)47application_icon_change_cb (DbusmenuMenuitem * mi, gchar * prop, GValue * value, gpointer user_data)
48#endif
45{49{
46 if (!g_strcmp0(prop, APPLICATION_MENUITEM_PROP_ICON)) {50 if (!g_strcmp0(prop, APPLICATION_MENUITEM_PROP_ICON)) {
47 /* Set the main icon */51 /* Set the main icon */
48 if (GTK_IS_IMAGE(user_data)) {52 if (GTK_IS_IMAGE(user_data)) {
53#if (INDICATOR_OLD_NAMES == 0)
54 gtk_image_set_from_icon_name(GTK_IMAGE(user_data), g_variant_get_string(value, NULL), GTK_ICON_SIZE_MENU);
55#else
49 gtk_image_set_from_icon_name(GTK_IMAGE(user_data), g_value_get_string(value), GTK_ICON_SIZE_MENU);56 gtk_image_set_from_icon_name(GTK_IMAGE(user_data), g_value_get_string(value), GTK_ICON_SIZE_MENU);
57#endif
50 }58 }
51 }59 }
5260
@@ -55,12 +63,20 @@
5563
56/* Sets the label when it changes. */64/* Sets the label when it changes. */
57static void65static void
66#if (INDICATOR_OLD_NAMES == 0)
67application_prop_change_cb (DbusmenuMenuitem * mi, gchar * prop, GVariant * value, gpointer user_data)
68#else
58application_prop_change_cb (DbusmenuMenuitem * mi, gchar * prop, GValue * value, gpointer user_data)69application_prop_change_cb (DbusmenuMenuitem * mi, gchar * prop, GValue * value, gpointer user_data)
70#endif
59{71{
60 if (!g_strcmp0(prop, APPLICATION_MENUITEM_PROP_NAME)) {72 if (!g_strcmp0(prop, APPLICATION_MENUITEM_PROP_NAME)) {
61 /* Set the main label */73 /* Set the main label */
62 if (GTK_IS_LABEL(user_data)) {74 if (GTK_IS_LABEL(user_data)) {
75#if (INDICATOR_OLD_NAMES == 0)
76 gtk_label_set_text(GTK_LABEL(user_data), g_variant_get_string(value, NULL));
77#else
63 gtk_label_set_text(GTK_LABEL(user_data), g_value_get_string(value));78 gtk_label_set_text(GTK_LABEL(user_data), g_value_get_string(value));
79#endif
64 }80 }
65 }81 }
6682
@@ -191,18 +207,24 @@
191static gboolean207static gboolean
192new_application_item (DbusmenuMenuitem * newitem, DbusmenuMenuitem * parent, DbusmenuClient * client)208new_application_item (DbusmenuMenuitem * newitem, DbusmenuMenuitem * parent, DbusmenuClient * client)
193{209{
194 g_debug ("%s (\"%s\")", __func__, dbusmenu_menuitem_property_get(newitem, APPLICATION_MENUITEM_PROP_NAME));210 gchar *cName = g_strdup (dbusmenu_menuitem_property_get(newitem, APPLICATION_MENUITEM_PROP_NAME));
211
212 cd_debug ("%s (\"%s\")", __func__, cName);
213
214#if (INDICATOR_OLD_NAMES == 0)
215 if (newitem == NULL || !dbusmenu_menuitem_property_get_bool(newitem, DBUSMENU_MENUITEM_PROP_VISIBLE))
216 {
217 cd_debug ("Not visible: %s", cName);
218 g_free (cName);
219 return TRUE;
220 }
221#endif
195222
196 GtkMenuItem * gmi = GTK_MENU_ITEM(gtk_image_menu_item_new());223 GtkMenuItem * gmi = GTK_MENU_ITEM(gtk_image_menu_item_new());
197#if (GTK_MAJOR_VERSION > 2 || GTK_MINOR_VERSION >= 16)224#if (GTK_MAJOR_VERSION > 2 || GTK_MINOR_VERSION >= 16)
198 gtk_image_menu_item_set_always_show_image(GTK_IMAGE_MENU_ITEM(gmi), TRUE);225 gtk_image_menu_item_set_always_show_image(GTK_IMAGE_MENU_ITEM(gmi), TRUE);
199#endif226#endif
200227
201 gint padding = 4;
202 gtk_widget_style_get(GTK_WIDGET(gmi), "horizontal-padding", &padding, NULL);
203
204 GtkWidget * hbox = gtk_hbox_new(FALSE, 0);
205
206 /* Set the minimum size, we always want it to take space */228 /* Set the minimum size, we always want it to take space */
207 gint width, height;229 gint width, height;
208 gtk_icon_size_lookup(GTK_ICON_SIZE_MENU, &width, &height);230 gtk_icon_size_lookup(GTK_ICON_SIZE_MENU, &width, &height);
@@ -220,14 +242,12 @@
220 gtk_widget_show(icon);242 gtk_widget_show(icon);
221243
222 /* Application name in a label */244 /* Application name in a label */
223 GtkWidget * label = gtk_label_new(dbusmenu_menuitem_property_get(newitem, APPLICATION_MENUITEM_PROP_NAME));245 GtkWidget * label = gtk_label_new(cName);
224 gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);246 gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
225 gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, TRUE, padding);
226 gtk_widget_show(label);247 gtk_widget_show(label);
227248
228 /* Insert the hbox */249 /* Insert the hbox */
229 gtk_container_add(GTK_CONTAINER(gmi), hbox);250 gtk_container_add(GTK_CONTAINER(gmi), label);
230 gtk_widget_show(hbox);
231251
232 /* Attach some of the standard GTK stuff */252 /* Attach some of the standard GTK stuff */
233 dbusmenu_gtkclient_newitem_base(DBUSMENU_GTKCLIENT(client), newitem, gmi, parent);253 dbusmenu_gtkclient_newitem_base(DBUSMENU_GTKCLIENT(client), newitem, gmi, parent);
@@ -254,14 +274,32 @@
254/* Whenever we have a property change on a DbusmenuMenuitem274/* Whenever we have a property change on a DbusmenuMenuitem
255 we need to be responsive to that. */275 we need to be responsive to that. */
256static void276static void
277#if (INDICATOR_OLD_NAMES == 0)
278indicator_prop_change_cb (DbusmenuMenuitem * mi, gchar * prop, GVariant * value, indicator_item_t * mi_data)
279#else
257indicator_prop_change_cb (DbusmenuMenuitem * mi, gchar * prop, GValue * value, indicator_item_t * mi_data)280indicator_prop_change_cb (DbusmenuMenuitem * mi, gchar * prop, GValue * value, indicator_item_t * mi_data)
281#endif
258{282{
283#if (INDICATOR_OLD_NAMES == 0)
284 cd_debug ("%s (\"%s\": %s)", __func__, prop, g_variant_get_string(value, NULL));
285#else
286 cd_debug ("%s (\"%s\": %s)", __func__, prop, g_value_get_string(value));
287#endif
288
259 if (!g_strcmp0(prop, INDICATOR_MENUITEM_PROP_LABEL)) {289 if (!g_strcmp0(prop, INDICATOR_MENUITEM_PROP_LABEL)) {
260 /* Set the main label */290 /* Set the main label */
291#if (INDICATOR_OLD_NAMES == 0)
292 gtk_label_set_text(GTK_LABEL(mi_data->label), g_variant_get_string(value, NULL));
293#else
261 gtk_label_set_text(GTK_LABEL(mi_data->label), g_value_get_string(value));294 gtk_label_set_text(GTK_LABEL(mi_data->label), g_value_get_string(value));
295#endif
262 } else if (!g_strcmp0(prop, INDICATOR_MENUITEM_PROP_RIGHT)) {296 } else if (!g_strcmp0(prop, INDICATOR_MENUITEM_PROP_RIGHT)) {
263 /* Set the right label */297 /* Set the right label */
298#if (INDICATOR_OLD_NAMES == 0)
299 gtk_label_set_text(GTK_LABEL(mi_data->right), g_variant_get_string(value, NULL));
300#else
264 gtk_label_set_text(GTK_LABEL(mi_data->right), g_value_get_string(value));301 gtk_label_set_text(GTK_LABEL(mi_data->right), g_value_get_string(value));
302#endif
265 } else if (!g_strcmp0(prop, INDICATOR_MENUITEM_PROP_ICON)) {303 } else if (!g_strcmp0(prop, INDICATOR_MENUITEM_PROP_ICON)) {
266 /* We don't use the value here, which is probably less efficient, 304 /* We don't use the value here, which is probably less efficient,
267 but it's easier to use the easy function. And since th value305 but it's easier to use the easy function. And since th value
@@ -275,22 +313,20 @@
275 gtk_icon_size_lookup(GTK_ICON_SIZE_MENU, &width, &height);313 gtk_icon_size_lookup(GTK_ICON_SIZE_MENU, &width, &height);
276 if (gdk_pixbuf_get_width(pixbuf) > width ||314 if (gdk_pixbuf_get_width(pixbuf) > width ||
277 gdk_pixbuf_get_height(pixbuf) > height) {315 gdk_pixbuf_get_height(pixbuf) > height) {
278 g_debug("Resizing icon from %dx%d to %dx%d", gdk_pixbuf_get_width(pixbuf), gdk_pixbuf_get_height(pixbuf), width, height);316 cd_debug("Resizing icon from %dx%d to %dx%d", gdk_pixbuf_get_width(pixbuf), gdk_pixbuf_get_height(pixbuf), width, height);
279 resized_pixbuf = gdk_pixbuf_scale_simple(pixbuf,317 resized_pixbuf = gdk_pixbuf_scale_simple(pixbuf,
280 width,318 width,
281 height,319 height,
282 GDK_INTERP_BILINEAR);320 GDK_INTERP_BILINEAR);
321 g_object_unref(pixbuf);
283 } else {322 } else {
284 g_debug("Happy with icon sized %dx%d", gdk_pixbuf_get_width(pixbuf), gdk_pixbuf_get_height(pixbuf));323 cd_debug("Happy with icon sized %dx%d", gdk_pixbuf_get_width(pixbuf), gdk_pixbuf_get_height(pixbuf));
285 resized_pixbuf = pixbuf;324 resized_pixbuf = pixbuf;
286 }325 }
287 326
288 gtk_image_set_from_pixbuf(GTK_IMAGE(mi_data->icon), resized_pixbuf);327 gtk_image_set_from_pixbuf(GTK_IMAGE(mi_data->icon), resized_pixbuf);
289328
290 /* The other pixbuf should be free'd by the dbusmenu. */329 g_object_unref(resized_pixbuf);
291 if (resized_pixbuf != pixbuf) {
292 g_object_unref(resized_pixbuf);
293 }
294330
295 gtk_widget_show(mi_data->icon);331 gtk_widget_show(mi_data->icon);
296 } else {332 } else {
@@ -312,6 +348,16 @@
312 g_return_val_if_fail(DBUSMENU_IS_GTKCLIENT(client), FALSE);348 g_return_val_if_fail(DBUSMENU_IS_GTKCLIENT(client), FALSE);
313 /* Note: not checking parent, it's reasonable for it to be NULL */349 /* Note: not checking parent, it's reasonable for it to be NULL */
314350
351 cd_debug ("%s (\"%s\")", __func__, dbusmenu_menuitem_property_get(newitem, INDICATOR_MENUITEM_PROP_LABEL));
352
353#if (INDICATOR_OLD_NAMES == 0)
354 if (newitem == NULL || !dbusmenu_menuitem_property_get_bool(newitem, DBUSMENU_MENUITEM_PROP_VISIBLE))
355 {
356 cd_debug ("Not visible: %s", dbusmenu_menuitem_property_get(newitem, INDICATOR_MENUITEM_PROP_LABEL));
357 return TRUE;
358 }
359#endif
360
315 indicator_item_t * mi_data = g_new0(indicator_item_t, 1);361 indicator_item_t * mi_data = g_new0(indicator_item_t, 1);
316362
317 GtkMenuItem * gmi = GTK_MENU_ITEM(gtk_menu_item_new());363 GtkMenuItem * gmi = GTK_MENU_ITEM(gtk_menu_item_new());
@@ -337,22 +383,20 @@
337 GdkPixbuf * resized_pixbuf;383 GdkPixbuf * resized_pixbuf;
338 if (gdk_pixbuf_get_width(pixbuf) > width ||384 if (gdk_pixbuf_get_width(pixbuf) > width ||
339 gdk_pixbuf_get_height(pixbuf) > height) {385 gdk_pixbuf_get_height(pixbuf) > height) {
340 g_debug("Resizing icon from %dx%d to %dx%d", gdk_pixbuf_get_width(pixbuf), gdk_pixbuf_get_height(pixbuf), width, height);386 cd_debug("Resizing icon from %dx%d to %dx%d", gdk_pixbuf_get_width(pixbuf), gdk_pixbuf_get_height(pixbuf), width, height);
341 resized_pixbuf = gdk_pixbuf_scale_simple(pixbuf,387 resized_pixbuf = gdk_pixbuf_scale_simple(pixbuf,
342 width,388 width,
343 height,389 height,
344 GDK_INTERP_BILINEAR);390 GDK_INTERP_BILINEAR);
391 g_object_unref(pixbuf);
345 } else {392 } else {
346 g_debug("Happy with icon sized %dx%d", gdk_pixbuf_get_width(pixbuf), gdk_pixbuf_get_height(pixbuf));393 cd_debug("Happy with icon sized %dx%d", gdk_pixbuf_get_width(pixbuf), gdk_pixbuf_get_height(pixbuf));
347 resized_pixbuf = pixbuf;394 resized_pixbuf = pixbuf;
348 }395 }
349 396
350 gtk_image_set_from_pixbuf(GTK_IMAGE(mi_data->icon), resized_pixbuf);397 gtk_image_set_from_pixbuf(GTK_IMAGE(mi_data->icon), resized_pixbuf);
351398
352 /* The other pixbuf should be free'd by the dbusmenu. */399 g_object_unref(resized_pixbuf);
353 if (resized_pixbuf != pixbuf) {
354 g_object_unref(resized_pixbuf);
355 }
356 }400 }
357 gtk_misc_set_alignment(GTK_MISC(mi_data->icon), 0.0, 0.5);401 gtk_misc_set_alignment(GTK_MISC(mi_data->icon), 0.0, 0.5);
358 gtk_box_pack_start(GTK_BOX(hbox), mi_data->icon, FALSE, FALSE, padding);402 gtk_box_pack_start(GTK_BOX(hbox), mi_data->icon, FALSE, FALSE, padding);
@@ -398,6 +442,6 @@
398{442{
399 indicator_right_group = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);443 indicator_right_group = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
400 444
401 dbusmenu_client_add_type_handler(DBUSMENU_CLIENT(client), INDICATOR_MENUITEM_TYPE, new_indicator_item);445 dbusmenu_client_add_type_handler(DBUSMENU_CLIENT(client), INDICATOR_MENUITEM_TYPE, (DbusmenuClientTypeHandler) new_indicator_item);
402 dbusmenu_client_add_type_handler(DBUSMENU_CLIENT(client), APPLICATION_MENUITEM_TYPE, new_application_item);446 dbusmenu_client_add_type_handler(DBUSMENU_CLIENT(client), APPLICATION_MENUITEM_TYPE, (DbusmenuClientTypeHandler) new_application_item);
403}447}
404448
=== modified file 'Messaging-Menu/src/applet-messaging.c'
--- Messaging-Menu/src/applet-messaging.c 2011-04-20 20:46:51 +0000
+++ Messaging-Menu/src/applet-messaging.c 2011-10-08 22:23:24 +0000
@@ -57,7 +57,7 @@
57static void57static void
58icon_changed_cb (DBusGProxy * proxy, gboolean hidden, CairoDockModuleInstance *myApplet)58icon_changed_cb (DBusGProxy * proxy, gboolean hidden, CairoDockModuleInstance *myApplet)
59{59{
60 //g_print ("%s (hidden : %d)\n", __func__, hidden);60 cd_debug ("%s (hidden : %d)", __func__, hidden);
61 if (hidden)61 if (hidden)
62 {62 {
63 myIcon->fAlpha = .5;63 myIcon->fAlpha = .5;
@@ -74,7 +74,7 @@
74attention_cb (DBusGProxy * proxy, gboolean dot, GError * error, CairoDockModuleInstance *myApplet)74attention_cb (DBusGProxy * proxy, gboolean dot, GError * error, CairoDockModuleInstance *myApplet)
75{75{
76 if (error != NULL) {76 if (error != NULL) {
77 g_warning("Unable to get attention status: %s", error->message);77 cd_warning ("Unable to get attention status: %s", error->message);
78 g_error_free(error);78 g_error_free(error);
79 return;79 return;
80 }80 }
@@ -87,7 +87,7 @@
87icon_cb (DBusGProxy * proxy, gboolean hidden, GError * error, CairoDockModuleInstance *myApplet)87icon_cb (DBusGProxy * proxy, gboolean hidden, GError * error, CairoDockModuleInstance *myApplet)
88{88{
89 if (error != NULL) {89 if (error != NULL) {
90 g_warning("Unable to get icon visibility: %s", error->message);90 cd_warning ("Unable to get icon visibility: %s", error->message);
91 g_error_free(error);91 g_error_free(error);
92 return;92 return;
93 }93 }
9494
=== added file 'Messaging-Menu/src/make-dbus-headers.sh'
--- Messaging-Menu/src/make-dbus-headers.sh 1970-01-01 00:00:00 +0000
+++ Messaging-Menu/src/make-dbus-headers.sh 2011-10-08 22:23:24 +0000
@@ -0,0 +1,2 @@
1#!/bin/sh
2dbus-binding-tool --prefix=_ --mode=glib-client --output=messages-service-client.h messages-service.xml
03
=== removed file 'Messaging-Menu/src/make-dbus-heaers.sh'
--- Messaging-Menu/src/make-dbus-heaers.sh 2010-08-10 00:05:57 +0000
+++ Messaging-Menu/src/make-dbus-heaers.sh 1970-01-01 00:00:00 +0000
@@ -1,2 +0,0 @@
1#!/bin/sh
2dbus-binding-tool --prefix=_ --mode=glib-client --output=messages-service-client.h messages-service.xml
30
=== modified file 'Messaging-Menu/src/messages-service.xml'
--- Messaging-Menu/src/messages-service.xml 2010-08-10 00:05:57 +0000
+++ Messaging-Menu/src/messages-service.xml 2011-10-08 22:23:24 +0000
@@ -1,17 +1,15 @@
1<?xml version="1.0" encoding="UTF-8"?>1<?xml version="1.0" encoding="UTF-8"?>
2<node name="/">2<node name="/">
3 <interface name="org.ayatana.indicator.messages.service">3 <interface name="com.canonical.indicator.messages.service">
44
5<!-- Methods -->5<!-- Methods -->
6 <method name="Watch">
7 <annotation name="org.freedesktop.DBus.GLib.Async" value="true" />
8 </method>
9 <method name="AttentionRequested">6 <method name="AttentionRequested">
10 <arg type="b" name="dot" direction="out" />7 <arg type="b" name="dot" direction="out" />
11 </method>8 </method>
12 <method name="IconShown">9 <method name="IconShown">
13 <arg type="b" name="hidden" direction="out" />10 <arg type="b" name="hidden" direction="out" />
14 </method>11 </method>
12 <method name="ClearAttention" />
1513
16<!-- Signals -->14<!-- Signals -->
17 <signal name="AttentionChanged">15 <signal name="AttentionChanged">
1816
=== modified file 'Network-Monitor/data/Network-Monitor.conf.in'
--- Network-Monitor/data/Network-Monitor.conf.in 2011-08-09 18:08:08 +0000
+++ Network-Monitor/data/Network-Monitor.conf.in 2011-10-08 22:23:24 +0000
@@ -21,9 +21,12 @@
21#{Set to 0 to use the default applet size}21#{Set to 0 to use the default applet size}
22icon size = 0;022icon size = 0;0
2323
24#b Always display the icon, even when the dock is hidden?24#B Always display the icon, even when the dock is hidden?
25always visi = false25always visi = false
2626
27#C+ Background color to add in this case
28bg color = .8;.8;.8;.5
29
27order=30order=
2831
29#F[Applet's Handbook]32#F[Applet's Handbook]
@@ -60,7 +63,7 @@
60#b+ Is detached from the dock63#b+ Is detached from the dock
61initially detached=false64initially detached=false
62#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:65#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:
63#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=utility)}66#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=Utility)}
64accessibility=067accessibility=0
65#b Should be visible on all desktops?68#b Should be visible on all desktops?
66sticky=true69sticky=true
@@ -147,7 +150,7 @@
147#X[Gauge;gtk-dialog-info]150#X[Gauge;gtk-dialog-info]
148frame_gauge=151frame_gauge=
149152
150#h+[@gaugesdir@;gauges;gauges2] Choose one of the available themes:/153#h+[@gaugesdir@;gauges;gauges3;wifi] Choose one of the available themes:/
151theme = turbo-night-fuel154theme = turbo-night-fuel
152155
153#X[Graph;gtk-dialog-info]156#X[Graph;gtk-dialog-info]
@@ -186,7 +189,7 @@
186#X[Gauge;gtk-dialog-info]189#X[Gauge;gtk-dialog-info]
187frame_gauge=190frame_gauge=
188191
189#h+[@gaugesdir@;gauges;gauges2] Choose one of the available themes:/192#h+[@gaugesdir@;gauges;gauges3;wifi] Choose one of the available themes:/
190theme = turbo-night-fuel193theme = turbo-night-fuel
191194
192195
193196
=== modified file 'Network-Monitor/src/applet-connections.c'
--- Network-Monitor/src/applet-connections.c 2010-08-10 00:05:57 +0000
+++ Network-Monitor/src/applet-connections.c 2011-10-08 22:23:24 +0000
@@ -92,7 +92,7 @@
92 cd_debug ("%d devices\n", paDevices->len);92 cd_debug ("%d devices\n", paDevices->len);
93 DBusGProxy *dbus_proxy_Device, *dbus_proxy_Device_prop;93 DBusGProxy *dbus_proxy_Device, *dbus_proxy_Device_prop;
94 gchar *cDevice;94 gchar *cDevice;
95 int i;95 uint i;
96 for (i = 0; i < paDevices->len; i++)96 for (i = 0; i < paDevices->len; i++)
97 {97 {
98 // on recupere le device.98 // on recupere le device.
@@ -217,7 +217,7 @@
217 217
218 //\_____________ On en choisit une.218 //\_____________ On en choisit une.
219 gchar *cConnection;219 gchar *cConnection;
220 int i;220 uint i;
221 for (i = 0; i < paConnections->len; i++)221 for (i = 0; i < paConnections->len; i++)
222 {222 {
223 cConnection = (gchar *)g_ptr_array_index(paConnections, i);223 cConnection = (gchar *)g_ptr_array_index(paConnections, i);
@@ -257,8 +257,8 @@
257 DBusGProxy *dbus_proxy_ActiveAccessPoint_prop = NULL;257 DBusGProxy *dbus_proxy_ActiveAccessPoint_prop = NULL;
258 GError *erreur = NULL;258 GError *erreur = NULL;
259 259
260 gint j,k;260 uint j,k;
261 GValue value = { 0 };261 GValue value = G_VALUE_INIT;
262 GPtrArray *paActiveConnections = NULL;262 GPtrArray *paActiveConnections = NULL;
263 GPtrArray *paDevices = NULL;263 GPtrArray *paDevices = NULL;
264 gchar *cActiveConnection, *cDevice, *cAccessPointPath, *cConnection;264 gchar *cActiveConnection, *cDevice, *cAccessPointPath, *cConnection;
@@ -267,7 +267,7 @@
267 //\_____________ On recupere la liste des connexions actives (ce sont les configs tout-en-un de NM qui sont actuellement utilisees).267 //\_____________ On recupere la liste des connexions actives (ce sont les configs tout-en-un de NM qui sont actuellement utilisees).
268 paActiveConnections = (GPtrArray*) cairo_dock_dbus_get_property_as_boxed (myData.dbus_proxy_NM_prop, "org.freedesktop.NetworkManager", "ActiveConnections");268 paActiveConnections = (GPtrArray*) cairo_dock_dbus_get_property_as_boxed (myData.dbus_proxy_NM_prop, "org.freedesktop.NetworkManager", "ActiveConnections");
269 cd_debug ("%d connections\n", paActiveConnections->len);269 cd_debug ("%d connections\n", paActiveConnections->len);
270 for (j=0; j<paActiveConnections->len; j++)270 for (j=0; j < paActiveConnections->len; j++)
271 {271 {
272 cActiveConnection = (gchar *)g_ptr_array_index(paActiveConnections,j);272 cActiveConnection = (gchar *)g_ptr_array_index(paActiveConnections,j);
273 cd_debug ("Network-Monitor : Active Connection path : %s\n", cActiveConnection);273 cd_debug ("Network-Monitor : Active Connection path : %s\n", cActiveConnection);
@@ -328,7 +328,7 @@
328 {328 {
329 GPtrArray *paDevices = g_value_get_boxed (v);329 GPtrArray *paDevices = g_value_get_boxed (v);
330 cd_debug (" %d devices\n", paDevices->len);330 cd_debug (" %d devices\n", paDevices->len);
331 for (k=0; k<paDevices->len; k++)331 for (k=0; k < paDevices->len; k++)
332 {332 {
333 // on recupere le device.333 // on recupere le device.
334 cDevice = (gchar *)g_ptr_array_index(paDevices,k);334 cDevice = (gchar *)g_ptr_array_index(paDevices,k);
@@ -595,7 +595,7 @@
595 {595 {
596 GByteArray *a = g_value_get_boxed (v);596 GByteArray *a = g_value_get_boxed (v);
597 myData.cESSID = g_new0 (gchar, a->len+1);597 myData.cESSID = g_new0 (gchar, a->len+1);
598 for (int i = 0; i < a->len; i ++)598 for (uint i = 0; i < a->len; i ++)
599 {599 {
600 myData.cESSID[i] = a->data[i];600 myData.cESSID[i] = a->data[i];
601 }601 }
602602
=== modified file 'Network-Monitor/src/applet-draw.c'
--- Network-Monitor/src/applet-draw.c 2011-04-20 20:46:51 +0000
+++ Network-Monitor/src/applet-draw.c 2011-10-08 22:23:24 +0000
@@ -34,7 +34,10 @@
34 if (myData.iPreviousQuality != myData.iQuality)34 if (myData.iPreviousQuality != myData.iQuality)
35 {35 {
36 myData.iPreviousQuality = myData.iQuality;36 myData.iPreviousQuality = myData.iQuality;
37 CD_APPLET_SET_NAME_FOR_MY_ICON (myConfig.defaultTitle);37 if (myConfig.defaultTitle) // has another default name
38 CD_APPLET_SET_NAME_FOR_MY_ICON (myConfig.defaultTitle);
39 else
40 CD_APPLET_SET_NAME_FOR_MY_ICON (myApplet->pModule->pVisitCard->cTitle);
38 CD_APPLET_SET_QUICK_INFO_ON_MY_ICON ("N/A");41 CD_APPLET_SET_QUICK_INFO_ON_MY_ICON ("N/A");
39 cd_NetworkMonitor_draw_icon_with_effect (WIFI_QUALITY_NO_SIGNAL);42 cd_NetworkMonitor_draw_icon_with_effect (WIFI_QUALITY_NO_SIGNAL);
40 43
4144
=== modified file 'Network-Monitor/src/applet-menu.c'
--- Network-Monitor/src/applet-menu.c 2010-08-10 00:05:57 +0000
+++ Network-Monitor/src/applet-menu.c 2011-10-08 22:23:24 +0000
@@ -32,7 +32,7 @@
32 gchar *cConnection;32 gchar *cConnection;
33 GHashTable *pSettings, *pSubSettings;33 GHashTable *pSettings, *pSubSettings;
34 GValue *v;34 GValue *v;
35 int i;35 uint i;
36 for (i = 0; i < paConnections->len; i++)36 for (i = 0; i < paConnections->len; i++)
37 {37 {
38 cConnection = (gchar *)g_ptr_array_index(paConnections, i);38 cConnection = (gchar *)g_ptr_array_index(paConnections, i);
@@ -119,7 +119,7 @@
119 GList *pConnList = NULL;119 GList *pConnList = NULL;
120 //\_____________ On cherche une connection qui ait le meme type (wifi ou filaire), et soit le meme SSID, soit la meme interface.120 //\_____________ On cherche une connection qui ait le meme type (wifi ou filaire), et soit le meme SSID, soit la meme interface.
121 gchar *cConnection;121 gchar *cConnection;
122 int i;122 uint i;
123 for (i = 0; i < paConnections->len; i++)123 for (i = 0; i < paConnections->len; i++)
124 {124 {
125 cConnection = (gchar *)g_ptr_array_index(paConnections, i);125 cConnection = (gchar *)g_ptr_array_index(paConnections, i);
@@ -141,22 +141,26 @@
141 GHashTable *pSettings = g_hash_table_new_full (g_str_hash,141 GHashTable *pSettings = g_hash_table_new_full (g_str_hash,
142 g_str_equal,142 g_str_equal,
143 g_free,143 g_free,
144 g_hash_table_destroy);144 (GDestroyNotify) g_hash_table_destroy); // a table of tables.
145 145 GHashTable *pSubSettings;
146 GHashTable *pSubSettings = g_hash_table_new_full (g_str_hash,146
147 g_str_equal,147 // connection: type, id, uuid
148 g_free,148 pSubSettings = g_hash_table_new_full (g_str_hash,
149 g_free);149 g_str_equal,
150 g_hash_table_insert (pSettings, "connection", pSubSettings);150 g_free,
151 g_hash_table_insert (pSubSettings, "type", g_strdup ("802-11-wireless"));151 g_free);
152 g_hash_table_insert (pSettings, "id", g_strdup_printf ("CD - %s", pItemData->cSsid));152 g_hash_table_insert (pSettings, g_strdup ("connection"), pSubSettings);
153 153 g_hash_table_insert (pSubSettings, g_strdup ("type"), g_strdup ("802-11-wireless"));
154 pSubSettings = g_hash_table_new_full (g_str_hash,154 g_hash_table_insert (pSubSettings, g_strdup ("id"), g_strdup_printf ("CD - %s", pItemData->cSsid));
155 g_str_equal,155
156 g_free,156 // 802-11-wireless: ssid, mode, seen-bssids
157 g_free);157 pSubSettings = g_hash_table_new_full (g_str_hash,
158 g_hash_table_insert (pSubSettings, "ssid", g_strdup (pItemData->cSsid));158 g_str_equal,
159 g_hash_table_insert (pSubSettings, "mode", g_strdup ("infrastructure"));159 g_free,
160 g_free);
161 g_hash_table_insert (pSettings, g_strdup ("802-11-wireless"), pSubSettings);
162 g_hash_table_insert (pSubSettings, g_strdup ("ssid"), g_strdup (pItemData->cSsid));
163 g_hash_table_insert (pSubSettings, g_strdup ("mode"), g_strdup ("infrastructure"));
160 164
161 // AddConnection165 // AddConnection
162 DBusGProxy *dbus_proxy_Settings = cairo_dock_create_new_system_proxy (166 DBusGProxy *dbus_proxy_Settings = cairo_dock_create_new_system_proxy (
@@ -191,7 +195,7 @@
191 195
192 //ActivateConnection ( s: service_name, o: connection, o: device, o: specific_object )o196 //ActivateConnection ( s: service_name, o: connection, o: device, o: specific_object )o
193 GError *erreur = NULL;197 GError *erreur = NULL;
194 GValue active_connection_path = {0};198 GValue active_connection_path = G_VALUE_INIT;
195 g_value_init (&active_connection_path, DBUS_TYPE_G_OBJECT_PATH);199 g_value_init (&active_connection_path, DBUS_TYPE_G_OBJECT_PATH);
196 200
197 gchar *cNewActiveConnectionPath = NULL;201 gchar *cNewActiveConnectionPath = NULL;
@@ -233,7 +237,7 @@
233 DBusGProxy *dbus_proxy_ConnectionSettings;237 DBusGProxy *dbus_proxy_ConnectionSettings;
234 GError *erreur = NULL;238 GError *erreur = NULL;
235 GHashTable *pSettingsTable;239 GHashTable *pSettingsTable;
236 int i;240 uint i;
237 for (i = 0; i < paConnections->len; i++)241 for (i = 0; i < paConnections->len; i++)
238 {242 {
239 cConnection = (gchar *)g_ptr_array_index(paConnections, i);243 cConnection = (gchar *)g_ptr_array_index(paConnections, i);
@@ -281,13 +285,13 @@
281 gchar *cAccessPointPath;285 gchar *cAccessPointPath;
282 GHashTable *hProperties;286 GHashTable *hProperties;
283 GValue *v;287 GValue *v;
284 guint iPercent;288 gint iPercent;
285 gchar *cSsid;289 gchar *cSsid = NULL;
286 const gchar *cHwAddress;290 const gchar *cHwAddress;
287 int iMode, iWirelessCapabilities;291 int iMode, iWirelessCapabilities;
288 CDMenuItemData *pItemData;292 CDMenuItemData *pItemData;
289 GtkWidget *pHBox;293 GtkWidget *pHBox;
290 int i, j;294 uint i, j;
291 for (i = 0; i < paDevices->len; i++)295 for (i = 0; i < paDevices->len; i++)
292 {296 {
293 // on recupere le device.297 // on recupere le device.
@@ -387,7 +391,7 @@
387 v = (GValue *)g_hash_table_lookup (hProperties, "Strength");391 v = (GValue *)g_hash_table_lookup (hProperties, "Strength");
388 if (v != NULL && G_VALUE_HOLDS_UCHAR (v))392 if (v != NULL && G_VALUE_HOLDS_UCHAR (v))
389 {393 {
390 iPercent = (gint) g_value_get_uchar (v);394 iPercent = g_value_get_uchar (v);
391 }395 }
392 396
393 v = (GValue *)g_hash_table_lookup (hProperties, "Ssid");397 v = (GValue *)g_hash_table_lookup (hProperties, "Ssid");
@@ -398,7 +402,7 @@
398 }402 }
399 403
400 // on empeche les doublons.404 // on empeche les doublons.
401 pItemData = g_hash_table_lookup (pSsidTable, cSsid);405 pItemData = (cSsid ? g_hash_table_lookup (pSsidTable, cSsid) : NULL);
402 if (pItemData != NULL)406 if (pItemData != NULL)
403 {407 {
404 if (pItemData->iPercent > iPercent)408 if (pItemData->iPercent > iPercent)
@@ -437,7 +441,7 @@
437 441
438 cd_debug ("%d) %s : %s (%s, %d%%)\n", j, cSsid, cAccessPointPath, cHwAddress, iPercent);442 cd_debug ("%d) %s : %s (%s, %d%%)\n", j, cSsid, cAccessPointPath, cHwAddress, iPercent);
439 443
440 gchar *cImage = NULL;444 const gchar *cImage = NULL;
441 if (iPercent > 80)445 if (iPercent > 80)
442 cImage = MY_APPLET_SHARE_DATA_DIR"/link-5.svg";446 cImage = MY_APPLET_SHARE_DATA_DIR"/link-5.svg";
443 else if (iPercent > 60)447 else if (iPercent > 60)
@@ -480,7 +484,7 @@
480 int n = GPOINTER_TO_INT (pConnList->data);484 int n = GPOINTER_TO_INT (pConnList->data);
481 pItemData->cConnection = g_strdup (g_ptr_array_index (paConnections, n));485 pItemData->cConnection = g_strdup (g_ptr_array_index (paConnections, n));
482 }486 }
483 cairo_dock_add_in_menu_with_stock_and_data (cSsid, cImage, _on_select_access_point, pMenu, pItemData);487 cairo_dock_add_in_menu_with_stock_and_data (cSsid, cImage, (GFunc) _on_select_access_point, pMenu, pItemData);
484 }488 }
485 else489 else
486 {490 {
@@ -505,7 +509,7 @@
505 pItemData->cDevice = g_strdup (cDevice);509 pItemData->cDevice = g_strdup (cDevice);
506 pItemData->cAccessPoint = g_strdup (cAccessPointPath);510 pItemData->cAccessPoint = g_strdup (cAccessPointPath);
507 511
508 cairo_dock_add_in_menu_with_stock_and_data (cID, NULL, _on_select_access_point, pSubMenu, GINT_TO_POINTER (n));512 cairo_dock_add_in_menu_with_stock_and_data (cID, NULL, (GFunc) _on_select_access_point, pSubMenu, GINT_TO_POINTER (n));
509 }513 }
510 }514 }
511 }515 }
512516
=== modified file 'Network-Monitor/src/applet-notifications.c'
--- Network-Monitor/src/applet-notifications.c 2011-04-20 20:46:51 +0000
+++ Network-Monitor/src/applet-notifications.c 2011-10-08 22:23:24 +0000
@@ -73,7 +73,6 @@
73 return;73 return;
74 }74 }
75 75
76 gchar *cCommand = NULL;
77 /*if (g_iDesktopEnv == CAIRO_DOCK_GNOME || g_iDesktopEnv == CAIRO_DOCK_XFCE) {76 /*if (g_iDesktopEnv == CAIRO_DOCK_GNOME || g_iDesktopEnv == CAIRO_DOCK_XFCE) {
78 int iMajor, iMinor, iMicro;77 int iMajor, iMinor, iMicro;
79 cairo_dock_get_gnome_version (&iMajor, &iMinor, &iMicro);78 cairo_dock_get_gnome_version (&iMajor, &iMinor, &iMicro);
@@ -91,9 +90,7 @@
91 else if (g_iDesktopEnv == CAIRO_DOCK_KDE) { //Ajouter les lignes de KDE90 else if (g_iDesktopEnv == CAIRO_DOCK_KDE) { //Ajouter les lignes de KDE
92 //cCommand = 91 //cCommand =
93 }*/92 }*/
94 cCommand = "nm-connection-editor"; // network-admin n'est plus present depuis Intrepid, et nm-connection-editor marche aussi sous KDE.93 cairo_dock_launch_command ("nm-connection-editor"); // network-admin n'est plus present depuis Intrepid, et nm-connection-editor marche aussi sous KDE.
95
96 cairo_dock_launch_command (cCommand);
97}94}
98CD_APPLET_ON_BUILD_MENU_BEGIN95CD_APPLET_ON_BUILD_MENU_BEGIN
99 GtkWidget *pSubMenu = CD_APPLET_CREATE_MY_SUB_MENU ();96 GtkWidget *pSubMenu = CD_APPLET_CREATE_MY_SUB_MENU ();
10097
=== modified file 'Network-Monitor/src/applet-wifi.c'
--- Network-Monitor/src/applet-wifi.c 2010-08-10 00:05:57 +0000
+++ Network-Monitor/src/applet-wifi.c 2011-10-08 22:23:24 +0000
@@ -122,7 +122,7 @@
122 gchar **cInfopipesList = g_strsplit (cResult, "\n", -1);122 gchar **cInfopipesList = g_strsplit (cResult, "\n", -1);
123 g_free (cResult);123 g_free (cResult);
124 gchar *cOneInfopipe, *str, *str2;124 gchar *cOneInfopipe, *str, *str2;
125 int i, iMaxValue;125 int i, iMaxValue = 0;
126 for (i = 0; cInfopipesList[i] != NULL; i ++)126 for (i = 0; cInfopipesList[i] != NULL; i ++)
127 {127 {
128 cOneInfopipe = cInfopipesList[i];128 cOneInfopipe = cInfopipesList[i];
@@ -163,10 +163,9 @@
163 {163 {
164 _pick_string ("Access Point", myData.wifi._cAccessPoint);164 _pick_string ("Access Point", myData.wifi._cAccessPoint);
165 }165 }
166 166
167 if (myData.wifi._iQuality == -1) // Link Quality=54/100 Signal level=-76 dBm Noise level=-78 dBm OU Link Quality:5 Signal level:219 Noise level:177167 if (myData.wifi._iQuality == (uint)-1) // Link Quality=54/100 Signal level=-76 dBm Noise level=-78 dBm OU Link Quality:5 Signal level:219 Noise level:177
168 {168 {
169 iMaxValue = 0;
170 _pick_value ("Link Quality", myData.wifi._iQuality, iMaxValue);169 _pick_value ("Link Quality", myData.wifi._iQuality, iMaxValue);
171 if (iMaxValue != 0) // vieille version, qualite indiquee en %170 if (iMaxValue != 0) // vieille version, qualite indiquee en %
172 {171 {
173172
=== modified file 'RSSreader/data/RSSreader.conf.in'
--- RSSreader/data/RSSreader.conf.in 2011-08-09 18:08:08 +0000
+++ RSSreader/data/RSSreader.conf.in 2011-10-08 22:23:24 +0000
@@ -60,7 +60,7 @@
60#b Is detached from the dock60#b Is detached from the dock
61initially detached=true61initially detached=true
62#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:62#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:
63#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=utility)}63#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=Utility)}
64accessibility=064accessibility=0
65#b Should be visible on all desktops?65#b Should be visible on all desktops?
66sticky=true66sticky=true
6767
=== modified file 'Recent-Events/data/Recent-Events.conf.in'
--- Recent-Events/data/Recent-Events.conf.in 2011-08-09 18:08:08 +0000
+++ Recent-Events/data/Recent-Events.conf.in 2011-10-08 22:23:24 +0000
@@ -60,7 +60,7 @@
60#b Is detached from the dock60#b Is detached from the dock
61initially detached=false61initially detached=false
62#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:62#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:
63#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=utility)}63#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=Utility)}
64accessibility=064accessibility=0
65#b Should be visible on all desktops?65#b Should be visible on all desktops?
66sticky=true66sticky=true
6767
=== modified file 'Recent-Events/src/applet-dialog.c'
--- Recent-Events/src/applet-dialog.c 2011-08-09 18:08:08 +0000
+++ Recent-Events/src/applet-dialog.c 2011-10-08 22:23:24 +0000
@@ -81,13 +81,13 @@
81 gint64 iTimeStamp;81 gint64 iTimeStamp;
82 const gchar *cEventURI;82 const gchar *cEventURI;
83 guint id;83 guint id;
84 gchar *cName = NULL, *cURI = NULL, *cIconName = NULL, *cPath = NULL;84 gchar *cName = NULL, *cURI = NULL, *cIconName = NULL, *cIconPath, *cPath = NULL;
85 double fOrder;85 double fOrder;
86 int iVolumeID;86 int iVolumeID;
87 gboolean bIsDirectory;87 gboolean bIsDirectory;
88 GdkPixbuf *pixbuf;88 GdkPixbuf *pixbuf;
89 GtkTreeIter iter;89 GtkTreeIter iter;
90 GHashTable *pHashTable = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, NULL);90 GHashTable *pHashTable = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, NULL); // used to prevent doubles
91 91
92 //\_____________ parse all the events.92 //\_____________ parse all the events.
93 while (zeitgeist_result_set_has_next (pEvents))93 while (zeitgeist_result_set_has_next (pEvents))
@@ -121,11 +121,13 @@
121 else121 else
122 {122 {
123 cairo_dock_fm_get_file_info (cEventURI, &cName, &cURI, &cIconName, &bIsDirectory, &iVolumeID, &fOrder, CAIRO_DOCK_FM_SORT_BY_DATE);123 cairo_dock_fm_get_file_info (cEventURI, &cName, &cURI, &cIconName, &bIsDirectory, &iVolumeID, &fOrder, CAIRO_DOCK_FM_SORT_BY_DATE);
124 g_free (cName);
125 g_free (cURI);
126 }124 }
127 if (cIconName != NULL)125 if (cIconName != NULL)
128 pixbuf = gdk_pixbuf_new_from_file_at_size (cIconName, 32, 32, NULL);126 {
127 cIconPath = cairo_dock_search_icon_s_path (cIconName);
128 pixbuf = gdk_pixbuf_new_from_file_at_size (cIconPath, 32, 32, NULL);
129 g_free (cIconPath);
130 }
129 else131 else
130 pixbuf = NULL;132 pixbuf = NULL;
131 133
@@ -166,7 +168,13 @@
166 CD_MODEL_ICON, pixbuf,168 CD_MODEL_ICON, pixbuf,
167 CD_MODEL_DATE, iTimeStamp,169 CD_MODEL_DATE, iTimeStamp,
168 CD_MODEL_ID, id, -1);170 CD_MODEL_ID, id, -1);
171
169 g_free (cIconName);172 g_free (cIconName);
173 cIconName = NULL;
174 g_free (cName);
175 cName = NULL;
176 g_free (cURI);
177 cURI = NULL;
170 if (pixbuf)178 if (pixbuf)
171 g_object_unref (pixbuf);179 g_object_unref (pixbuf);
172 g_free (cPath);180 g_free (cPath);
@@ -467,11 +475,11 @@
467 // establish the connection to Zeitgesit.475 // establish the connection to Zeitgesit.
468 if (myData.pLog == NULL) // first search.476 if (myData.pLog == NULL) // first search.
469 {477 {
470 g_print ("first search\n");478 cd_debug ("first search");
471 myData.pLog = zeitgeist_log_new (); // may launch the Zeitgeist daemon if it's not yet running.479 myData.pLog = zeitgeist_log_new (); // may launch the Zeitgeist daemon if it's not yet running.
472 if (! zeitgeist_log_is_connected (myData.pLog)) // the connection may not be immediate (even if the daemon is already running), in this case come back in 1s.480 if (! zeitgeist_log_is_connected (myData.pLog)) // the connection may not be immediate (even if the daemon is already running), in this case come back in 1s.
473 {481 {
474 g_print ("come back in 1s...\n");482 cd_debug ("come back in 1s...");
475 g_timeout_add_seconds (1, _show_dialog_delayed, NULL);483 g_timeout_add_seconds (1, _show_dialog_delayed, NULL);
476 return;484 return;
477 }485 }
478486
=== modified file 'Recent-Events/src/applet-notifications.c'
--- Recent-Events/src/applet-notifications.c 2011-04-20 20:46:51 +0000
+++ Recent-Events/src/applet-notifications.c 2011-10-08 22:23:24 +0000
@@ -101,7 +101,7 @@
101 gint i,n;101 gint i,n;
102 GtkWidget *pMenuItem = NULL, *pSubMenu = NULL;102 GtkWidget *pMenuItem = NULL, *pSubMenu = NULL;
103 const gchar *cEventURI;103 const gchar *cEventURI;
104 gchar *cName = NULL, *cURI = NULL, *cIconName = NULL;104 gchar *cName = NULL, *cURI = NULL, *cIconName = NULL, *cIconPath;
105 gchar *cCommand;105 gchar *cCommand;
106 double fOrder;106 double fOrder;
107 int iVolumeID;107 int iVolumeID;
@@ -119,16 +119,21 @@
119 cd_debug (" + %s", cEventURI);119 cd_debug (" + %s", cEventURI);
120 120
121 cairo_dock_fm_get_file_info (cEventURI, &cName, &cURI, &cIconName, &bIsDirectory, &iVolumeID, &fOrder, 0);121 cairo_dock_fm_get_file_info (cEventURI, &cName, &cURI, &cIconName, &bIsDirectory, &iVolumeID, &fOrder, 0);
122 //g_free (cName);
123 //g_free (cURI);
124 122
125 gchar *cPath = g_filename_from_uri (cEventURI, NULL, NULL); // some programs dont support URI, so we feed them with path.123 gchar *cPath = g_filename_from_uri (cEventURI, NULL, NULL); // some programs dont support URI, so we feed them with path.
126 cCommand = g_strdup_printf ("%s \"%s\"", pIcon->cCommand, cPath);124 cCommand = g_strdup_printf ("%s \"%s\"", pIcon->cCommand, cPath);
127 g_free (cPath);125 g_free (cPath);
128 s_pEventList = g_list_prepend (s_pEventList, cCommand);126 s_pEventList = g_list_prepend (s_pEventList, cCommand);
129 127
130 CD_APPLET_ADD_IN_MENU_WITH_STOCK_AND_DATA (zeitgeist_subject_get_text (subject), cIconName, _open_file, pSubMenu, cCommand);128 cIconPath = cairo_dock_search_icon_s_path (cIconName);
131 //g_free (cIconName);129 CD_APPLET_ADD_IN_MENU_WITH_STOCK_AND_DATA (zeitgeist_subject_get_text (subject), cIconPath, _open_file, pSubMenu, cCommand);
130 g_free (cIconPath);
131 g_free (cIconName);
132 cIconName = NULL;
133 g_free (cName);
134 cName = NULL;
135 g_free (cURI);
136 cURI = NULL;
132 }137 }
133 }138 }
134 if (pSubMenu)139 if (pSubMenu)
135140
=== modified file 'Recent-Events/src/applet-search.c'
--- Recent-Events/src/applet-search.c 2011-08-09 18:08:08 +0000
+++ Recent-Events/src/applet-search.c 2011-10-08 22:23:24 +0000
@@ -417,7 +417,6 @@
417 if (iNbDays > 0)417 if (iNbDays > 0)
418 {418 {
419 // find events IDs of less than 'iNbDays' days419 // find events IDs of less than 'iNbDays' days
420 GArray *event_ids;
421 time_t t = (time_t) time (NULL);420 time_t t = (time_t) time (NULL);
422 gint64 now = t * 1e3; // msec421 gint64 now = t * 1e3; // msec
423 ZeitgeistTimeRange *time_range = zeitgeist_time_range_new (now - iNbDays*24*3600*1e3, now);422 ZeitgeistTimeRange *time_range = zeitgeist_time_range_new (now - iNbDays*24*3600*1e3, now);
424423
=== modified file 'Remote-Control/src/applet-icon-finder.c'
--- Remote-Control/src/applet-icon-finder.c 2011-04-20 20:46:51 +0000
+++ Remote-Control/src/applet-icon-finder.c 2011-10-08 22:23:24 +0000
@@ -215,7 +215,7 @@
215 }215 }
216 myData.iMouseX = x;216 myData.iMouseX = x;
217 myData.iMouseY = y;217 myData.iMouseY = y;
218 cairo_dock_request_icon_animation (pIcon, pDock, myConfig.cIconAnimation, 1e6); // interrompt l'animation de "mouse over".218 cairo_dock_request_icon_animation (pIcon, CAIRO_CONTAINER (pDock), myConfig.cIconAnimation, 1e6); // interrompt l'animation de "mouse over".
219 cairo_dock_launch_animation (CAIRO_CONTAINER (pDock));219 cairo_dock_launch_animation (CAIRO_CONTAINER (pDock));
220 //if (myAccessibility.bShowSubDockOnClick)220 //if (myAccessibility.bShowSubDockOnClick)
221 // cairo_dock_show_subdock (pIcon, pDock, FALSE);221 // cairo_dock_show_subdock (pIcon, pDock, FALSE);
222222
=== modified file 'Scooby-Do/src/applet-draw.c'
--- Scooby-Do/src/applet-draw.c 2011-04-20 20:46:51 +0000
+++ Scooby-Do/src/applet-draw.c 2011-10-08 22:23:24 +0000
@@ -45,7 +45,7 @@
45 if (pIcon->pIconBuffer == NULL && pIcon->iIconTexture == 0) // icone pas encore chargee.45 if (pIcon->pIconBuffer == NULL && pIcon->iIconTexture == 0) // icone pas encore chargee.
46 continue;46 continue;
47 pParentDock = cairo_dock_search_dock_from_name (pIcon->cParentDockName);47 pParentDock = cairo_dock_search_dock_from_name (pIcon->cParentDockName);
48 cairo_dock_get_icon_extent (pIcon, CAIRO_CONTAINER (pParentDock), &iWidth, &iHeight);48 cairo_dock_get_icon_extent (pIcon, &iWidth, &iHeight);
49 if (iHeight != 0)49 if (iHeight != 0)
50 {50 {
51 fZoom = (double) g_pMainDock->container.iHeight/2 / iHeight;51 fZoom = (double) g_pMainDock->container.iHeight/2 / iHeight;
@@ -71,7 +71,7 @@
71 if (pIcon->pIconBuffer == NULL && pIcon->iIconTexture == 0) // icone pas encore chargee.71 if (pIcon->pIconBuffer == NULL && pIcon->iIconTexture == 0) // icone pas encore chargee.
72 continue;72 continue;
73 pParentDock = cairo_dock_search_dock_from_name (pIcon->cParentDockName);73 pParentDock = cairo_dock_search_dock_from_name (pIcon->cParentDockName);
74 cairo_dock_get_icon_extent (pIcon, CAIRO_CONTAINER (pParentDock), &iWidth, &iHeight);74 cairo_dock_get_icon_extent (pIcon, &iWidth, &iHeight);
75 if (iHeight != 0)75 if (iHeight != 0)
76 {76 {
77 fZoom = (double) g_pMainDock->container.iHeight/2 / iHeight;77 fZoom = (double) g_pMainDock->container.iHeight/2 / iHeight;
@@ -161,7 +161,7 @@
161 if (pIcon->pIconBuffer == NULL) // icone pas encore chargee.161 if (pIcon->pIconBuffer == NULL) // icone pas encore chargee.
162 continue;162 continue;
163 pParentDock = cairo_dock_search_dock_from_name (pIcon->cParentDockName);163 pParentDock = cairo_dock_search_dock_from_name (pIcon->cParentDockName);
164 cairo_dock_get_icon_extent (pIcon, CAIRO_CONTAINER (pParentDock), &iWidth, &iHeight);164 cairo_dock_get_icon_extent (pIcon, &iWidth, &iHeight);
165 fZoom = fIconScale * pMainDock->container.iHeight/2 / iHeight * (myData.pCurrentMatchingElement == ic ? 1. : 1.);165 fZoom = fIconScale * pMainDock->container.iHeight/2 / iHeight * (myData.pCurrentMatchingElement == ic ? 1. : 1.);
166 cairo_save (pCairoContext);166 cairo_save (pCairoContext);
167 167
@@ -346,7 +346,7 @@
346 if (pIcon->iIconTexture == 0) // icone pas encore chargee.346 if (pIcon->iIconTexture == 0) // icone pas encore chargee.
347 continue;347 continue;
348 pParentDock = cairo_dock_search_dock_from_name (pIcon->cParentDockName);348 pParentDock = cairo_dock_search_dock_from_name (pIcon->cParentDockName);
349 cairo_dock_get_icon_extent (pIcon, CAIRO_CONTAINER (pParentDock), &iWidth, &iHeight);349 cairo_dock_get_icon_extent (pIcon, &iWidth, &iHeight);
350 fZoom = (double) pMainDock->container.iHeight/2 / iHeight * (myData.pCurrentMatchingElement == ic ? 1. : 1.);350 fZoom = (double) pMainDock->container.iHeight/2 / iHeight * (myData.pCurrentMatchingElement == ic ? 1. : 1.);
351 glPushMatrix ();351 glPushMatrix ();
352 352
353353
=== modified file 'Scooby-Do/src/applet-icon-finder.c'
--- Scooby-Do/src/applet-icon-finder.c 2010-09-18 14:20:27 +0000
+++ Scooby-Do/src/applet-icon-finder.c 2011-10-08 22:23:24 +0000
@@ -159,7 +159,7 @@
159 myData.iPreviousMatchingOffset = myData.iCurrentMatchingOffset; // on part du point courant.159 myData.iPreviousMatchingOffset = myData.iCurrentMatchingOffset; // on part du point courant.
160 CairoDock *pParentDock = cairo_dock_search_dock_from_name (pIcon->cParentDockName);160 CairoDock *pParentDock = cairo_dock_search_dock_from_name (pIcon->cParentDockName);
161 int iWidth, iHeight;161 int iWidth, iHeight;
162 cairo_dock_get_icon_extent (pIcon, CAIRO_CONTAINER (pParentDock), &iWidth, &iHeight);162 cairo_dock_get_icon_extent (pIcon, &iWidth, &iHeight);
163 if (iHeight != 0)163 if (iHeight != 0)
164 {164 {
165 double fZoom = (double) g_pMainDock->container.iHeight/2 / iHeight;165 double fZoom = (double) g_pMainDock->container.iHeight/2 / iHeight;
166166
=== modified file 'Status-Notifier/data/Status-Notifier.conf.in'
--- Status-Notifier/data/Status-Notifier.conf.in 2011-08-09 18:08:08 +0000
+++ Status-Notifier/data/Status-Notifier.conf.in 2011-10-08 22:23:24 +0000
@@ -60,7 +60,7 @@
60#b Is detached from the dock60#b Is detached from the dock
61initially detached=false61initially detached=false
62#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:62#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:
63#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=utility)}63#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=Utility)}
64accessibility=064accessibility=0
65#b Should be visible on all desktops?65#b Should be visible on all desktops?
66sticky=true66sticky=true
6767
=== modified file 'Status-Notifier/src/CMakeLists.txt'
--- Status-Notifier/src/CMakeLists.txt 2011-08-09 18:08:08 +0000
+++ Status-Notifier/src/CMakeLists.txt 2011-10-08 22:23:24 +0000
@@ -25,6 +25,7 @@
25add_definitions (-DMY_APPLET_DOCK_VERSION="${dock_version}")25add_definitions (-DMY_APPLET_DOCK_VERSION="${dock_version}")
26add_definitions (-DMY_APPLET_ICON_FILE="icon.png")26add_definitions (-DMY_APPLET_ICON_FILE="icon.png")
27add_definitions (-DINDICATOR_OLD_NAMES=${INDICATOR_OLD_NAMES})27add_definitions (-DINDICATOR_OLD_NAMES=${INDICATOR_OLD_NAMES})
28add_definitions (-DINDICATOR_APPLICATIONADDED_HAS_HINT=${INDICATOR_APPLICATIONADDED_HAS_HINT})
28add_definitions (-DCD_PLUGINS_DIR="${pluginsdir}")29add_definitions (-DCD_PLUGINS_DIR="${pluginsdir}")
2930
30include_directories (31include_directories (
3132
=== modified file 'Status-Notifier/src/applet-host-ias.c'
--- Status-Notifier/src/applet-host-ias.c 2011-08-09 18:08:08 +0000
+++ Status-Notifier/src/applet-host-ias.c 2011-10-08 22:23:24 +0000
@@ -94,7 +94,12 @@
94 data2);94 data2);
95}95}
96#else // Natty96#else // Natty
97static void _cd_cclosure_marshal_VOID__STRING_INT_STRING_STRING_STRING_STRING_STRING_STRING (GClosure *closure,97#if (INDICATOR_APPLICATIONADDED_HAS_HINT == 1)
98static void _cd_cclosure_marshal_VOID__STRING_INT_STRING_STRING_STRING_STRING_STRING_STRING_STRING (
99#else
100static void _cd_cclosure_marshal_VOID__STRING_INT_STRING_STRING_STRING_STRING_STRING_STRING (
101#endif
102 GClosure *closure,
98 GValue *return_value G_GNUC_UNUSED,103 GValue *return_value G_GNUC_UNUSED,
99 guint n_param_values,104 guint n_param_values,
100 const GValue *param_values,105 const GValue *param_values,
@@ -102,7 +107,11 @@
102 gpointer marshal_data)107 gpointer marshal_data)
103{108{
104 //cd_debug ("=== %s ()\n", __func__);109 //cd_debug ("=== %s ()\n", __func__);
110 #if (INDICATOR_APPLICATIONADDED_HAS_HINT == 1)
111 typedef void (*GMarshalFunc_VOID__STRING_INT_STRING_STRING_STRING_STRING_STRING_STRING_STRING) (
112 #else
105 typedef void (*GMarshalFunc_VOID__STRING_INT_STRING_STRING_STRING_STRING_STRING_STRING) (113 typedef void (*GMarshalFunc_VOID__STRING_INT_STRING_STRING_STRING_STRING_STRING_STRING) (
114 #endif
106 gpointer data1,115 gpointer data1,
107 gchar *arg_1,116 gchar *arg_1,
108 gint arg_2,117 gint arg_2,
@@ -112,11 +121,23 @@
112 gchar *arg_6,121 gchar *arg_6,
113 gchar *arg_7,122 gchar *arg_7,
114 gchar *arg_8,123 gchar *arg_8,
124 #if (INDICATOR_APPLICATIONADDED_HAS_HINT == 1)
125 gchar *arg_9,
126 #endif
115 gpointer data2);127 gpointer data2);
128 #if (INDICATOR_APPLICATIONADDED_HAS_HINT == 1)
129 register GMarshalFunc_VOID__STRING_INT_STRING_STRING_STRING_STRING_STRING_STRING_STRING callback;
130 #else
116 register GMarshalFunc_VOID__STRING_INT_STRING_STRING_STRING_STRING_STRING_STRING callback;131 register GMarshalFunc_VOID__STRING_INT_STRING_STRING_STRING_STRING_STRING_STRING callback;
132 #endif
117 register GCClosure *cc = (GCClosure*) closure;133 register GCClosure *cc = (GCClosure*) closure;
118 register gpointer data1, data2;134 register gpointer data1, data2;
119 g_return_if_fail (n_param_values == 9); // return_value est NULL ici, car la callback ne renvoit rien.135 // return_value est NULL ici, car la callback ne renvoit rien.
136 #if (INDICATOR_APPLICATIONADDED_HAS_HINT == 1)
137 g_return_if_fail (n_param_values == 10);
138 #else
139 g_return_if_fail (n_param_values == 9);
140 #endif
120141
121 if (G_CCLOSURE_SWAP_DATA (closure))142 if (G_CCLOSURE_SWAP_DATA (closure))
122 {143 {
@@ -128,7 +149,12 @@
128 data1 = g_value_peek_pointer (param_values + 0);149 data1 = g_value_peek_pointer (param_values + 0);
129 data2 = closure->data;150 data2 = closure->data;
130 }151 }
131 callback = (GMarshalFunc_VOID__STRING_INT_STRING_STRING_STRING_STRING_STRING_STRING) (marshal_data ? marshal_data : cc->callback);152 #if (INDICATOR_APPLICATIONADDED_HAS_HINT == 1)
153 callback = (GMarshalFunc_VOID__STRING_INT_STRING_STRING_STRING_STRING_STRING_STRING_STRING)
154 #else
155 callback = (GMarshalFunc_VOID__STRING_INT_STRING_STRING_STRING_STRING_STRING_STRING)
156 #endif
157 (marshal_data ? marshal_data : cc->callback);
132158
133 callback (data1,159 callback (data1,
134 (char*) g_value_get_string (param_values + 1),160 (char*) g_value_get_string (param_values + 1),
@@ -139,6 +165,9 @@
139 (char*) g_value_get_string (param_values + 6),165 (char*) g_value_get_string (param_values + 6),
140 (char*) g_value_get_string (param_values + 7),166 (char*) g_value_get_string (param_values + 7),
141 (char*) g_value_get_string (param_values + 8),167 (char*) g_value_get_string (param_values + 8),
168 #if (INDICATOR_APPLICATIONADDED_HAS_HINT == 1)
169 (char*) g_value_get_string (param_values + 9),
170 #endif
142 data2);171 data2);
143}172}
144#endif173#endif
@@ -150,6 +179,9 @@
150static void on_new_application (DBusGProxy *proxy_watcher, const gchar *cIconName, gint iPosition, const gchar *cAdress, const gchar *cObjectPath, const gchar *cIconThemePath, const gchar *cLabel, const gchar *cLabelGuide,179static void on_new_application (DBusGProxy *proxy_watcher, const gchar *cIconName, gint iPosition, const gchar *cAdress, const gchar *cObjectPath, const gchar *cIconThemePath, const gchar *cLabel, const gchar *cLabelGuide,
151#if (INDICATOR_OLD_NAMES == 0) // Natty180#if (INDICATOR_OLD_NAMES == 0) // Natty
152const gchar *cAccessbleDesc, // WTF is this new param ??181const gchar *cAccessbleDesc, // WTF is this new param ??
182#if (INDICATOR_APPLICATIONADDED_HAS_HINT == 1)
183const gchar *cHint,
184#endif
153#endif185#endif
154CairoDockModuleInstance *myApplet)186CairoDockModuleInstance *myApplet)
155{187{
@@ -157,6 +189,9 @@
157 cd_debug ("=== %s (%s, %s, %s, %s, %d)", __func__, cAdress, cObjectPath, cIconName, cIconThemePath, iPosition);189 cd_debug ("=== %s (%s, %s, %s, %s, %d)", __func__, cAdress, cObjectPath, cIconName, cIconThemePath, iPosition);
158 #if (INDICATOR_OLD_NAMES == 0) // Natty190 #if (INDICATOR_OLD_NAMES == 0) // Natty
159 cd_debug (" %s", cAccessbleDesc);191 cd_debug (" %s", cAccessbleDesc);
192 #if (INDICATOR_APPLICATIONADDED_HAS_HINT == 1)
193 cd_debug (" %s", cHint);
194 #endif
160 #endif195 #endif
161 196
162 // position +1 for items placed after this one.197 // position +1 for items placed after this one.
@@ -275,7 +310,7 @@
275 if (v && G_VALUE_HOLDS_BOXED (v))310 if (v && G_VALUE_HOLDS_BOXED (v))
276 cObjectPath = (gchar*)g_value_get_boxed (v);311 cObjectPath = (gchar*)g_value_get_boxed (v);
277312
278 /*g_print ("=== cObjectPath : %s\n", cObjectPath);313 /*cd_debug ("=== cObjectPath : %s", cObjectPath);
279 if (cObjectPath != NULL && strncmp (cObjectPath, CD_INDICATOR_APPLICATION_ITEM_OBJ, strlen (CD_INDICATOR_APPLICATION_ITEM_OBJ)) == 0)314 if (cObjectPath != NULL && strncmp (cObjectPath, CD_INDICATOR_APPLICATION_ITEM_OBJ, strlen (CD_INDICATOR_APPLICATION_ITEM_OBJ)) == 0)
280 {315 {
281 gchar *str = strrchr (cObjectPath, '/'); // I think this is because this path is actually the menu path, and fortunately it's just under the item object's path.316 gchar *str = strrchr (cObjectPath, '/'); // I think this is because this path is actually the menu path, and fortunately it's just under the item object's path.
@@ -353,14 +388,19 @@
353 dbus_g_object_register_marshaller(_cd_cclosure_marshal_VOID__STRING_INT_STRING_STRING_STRING_STRING_STRING,388 dbus_g_object_register_marshaller(_cd_cclosure_marshal_VOID__STRING_INT_STRING_STRING_STRING_STRING_STRING,
354 G_TYPE_NONE, G_TYPE_STRING, G_TYPE_INT, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INVALID);389 G_TYPE_NONE, G_TYPE_STRING, G_TYPE_INT, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INVALID);
355 #else // Natty390 #else // Natty
356 dbus_g_object_register_marshaller(_cd_cclosure_marshal_VOID__STRING_INT_STRING_STRING_STRING_STRING_STRING_STRING,391 dbus_g_object_register_marshaller(
392 #if (INDICATOR_APPLICATIONADDED_HAS_HINT == 1)
393 _cd_cclosure_marshal_VOID__STRING_INT_STRING_STRING_STRING_STRING_STRING_STRING_STRING,
394 #else
395 _cd_cclosure_marshal_VOID__STRING_INT_STRING_STRING_STRING_STRING_STRING_STRING,
396 #endif
357 G_TYPE_NONE, G_TYPE_STRING, G_TYPE_INT, G_TYPE_STRING,397 G_TYPE_NONE, G_TYPE_STRING, G_TYPE_INT, G_TYPE_STRING,
358 #if (INDICATOR_OLD_NAMES != 0) // Maverick
359 G_TYPE_STRING, // dbusobject
360 #else // Natty
361 DBUS_TYPE_G_OBJECT_PATH, // dbusobject398 DBUS_TYPE_G_OBJECT_PATH, // dbusobject
399 G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING,
400 #if (INDICATOR_APPLICATIONADDED_HAS_HINT == 1)
401 G_TYPE_STRING,
362 #endif402 #endif
363 G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INVALID);403 G_TYPE_INVALID);
364 #endif404 #endif
365 dbus_g_proxy_add_signal(myData.pProxyIndicatorApplicationService, "ApplicationAdded",405 dbus_g_proxy_add_signal(myData.pProxyIndicatorApplicationService, "ApplicationAdded",
366 G_TYPE_STRING, // iconname406 G_TYPE_STRING, // iconname
@@ -376,6 +416,9 @@
376 G_TYPE_STRING, // labelguide416 G_TYPE_STRING, // labelguide
377 #if (INDICATOR_OLD_NAMES == 0) // Natty417 #if (INDICATOR_OLD_NAMES == 0) // Natty
378 G_TYPE_STRING, // accessibledesc418 G_TYPE_STRING, // accessibledesc
419 #if (INDICATOR_APPLICATIONADDED_HAS_HINT == 1)
420 G_TYPE_STRING, // hint => only with indicator-0.4 (Oneiric)
421 #endif
379 #endif422 #endif
380 G_TYPE_INVALID);423 G_TYPE_INVALID);
381 dbus_g_proxy_connect_signal(myData.pProxyIndicatorApplicationService, "ApplicationAdded",424 dbus_g_proxy_connect_signal(myData.pProxyIndicatorApplicationService, "ApplicationAdded",
@@ -429,7 +472,7 @@
429 }472 }
430 CD_APPLET_LEAVE ();473 CD_APPLET_LEAVE ();
431}474}
432static void _on_ias_owner_changed (gboolean bOwned, gpointer data)475static void _on_ias_owner_changed (const gchar *cName, gboolean bOwned, gpointer data)
433{476{
434 CD_APPLET_ENTER;477 CD_APPLET_ENTER;
435 cd_debug ("=== Indicator Applications Service is on the bus (%d)", bOwned);478 cd_debug ("=== Indicator Applications Service is on the bus (%d)", bOwned);
@@ -475,7 +518,7 @@
475 // if present, set up proxy, else try to start the service.518 // if present, set up proxy, else try to start the service.
476 if (bPresent)519 if (bPresent)
477 {520 {
478 _on_ias_owner_changed (TRUE, NULL);521 _on_ias_owner_changed (CD_INDICATOR_APPLICATION_ADDR, TRUE, NULL);
479 }522 }
480 else // not present, maybe the service is not started => try starting it.523 else // not present, maybe the service is not started => try starting it.
481 {524 {
@@ -519,5 +562,5 @@
519 }562 }
520 563
521 cairo_dock_stop_watching_dbus_name_owner (CD_INDICATOR_APPLICATION_ADDR,564 cairo_dock_stop_watching_dbus_name_owner (CD_INDICATOR_APPLICATION_ADDR,
522 (CairoDockOnAppliPresentOnDbus) _on_detect_ias);565 (CairoDockDbusNameOwnerChangedFunc) _on_ias_owner_changed);
523}566}
524567
=== modified file 'Status-Notifier/src/applet-host-kde.c'
--- Status-Notifier/src/applet-host-kde.c 2011-08-09 18:08:08 +0000
+++ Status-Notifier/src/applet-host-kde.c 2011-10-08 22:23:24 +0000
@@ -220,7 +220,7 @@
220 }220 }
221 CD_APPLET_LEAVE ();221 CD_APPLET_LEAVE ();
222}222}
223static void _on_watcher_owner_changed (gboolean bOwned, gpointer data)223static void _on_watcher_owner_changed (const gchar *cName, gboolean bOwned, gpointer data)
224{224{
225 cd_debug ("=== Watcher is on the bus (%d)", bOwned);225 cd_debug ("=== Watcher is on the bus (%d)", bOwned);
226 CD_APPLET_ENTER;226 CD_APPLET_ENTER;
@@ -283,7 +283,7 @@
283 // if present, set up proxy.283 // if present, set up proxy.
284 if (bPresent)284 if (bPresent)
285 {285 {
286 _on_watcher_owner_changed (TRUE, NULL);286 _on_watcher_owner_changed (CD_STATUS_NOTIFIER_WATCHER_ADDR, TRUE, NULL);
287 }287 }
288 else if (myConfig.bCompactMode) // in compact mode, draw a 'failed' image to not have an empty icon.288 else if (myConfig.bCompactMode) // in compact mode, draw a 'failed' image to not have an empty icon.
289 {289 {
@@ -321,5 +321,5 @@
321 s_pDetectWatcherCall = NULL;321 s_pDetectWatcherCall = NULL;
322 }322 }
323 cairo_dock_stop_watching_dbus_name_owner (CD_STATUS_NOTIFIER_WATCHER_ADDR,323 cairo_dock_stop_watching_dbus_name_owner (CD_STATUS_NOTIFIER_WATCHER_ADDR,
324 (CairoDockOnAppliPresentOnDbus) _on_detect_watcher);324 (CairoDockDbusNameOwnerChangedFunc) _on_watcher_owner_changed);
325}325}
326326
=== modified file 'Status-Notifier/src/applet-item.c'
--- Status-Notifier/src/applet-item.c 2011-08-09 18:08:08 +0000
+++ Status-Notifier/src/applet-item.c 2011-10-08 22:23:24 +0000
@@ -269,7 +269,7 @@
269 269
270 if (pItem->cOverlayIconName != NULL)270 if (pItem->cOverlayIconName != NULL)
271 {271 {
272 CairoEmblem *pEmblem = cairo_dock_make_emblem (pItem->cOverlayIconName, pIcon, CAIRO_CONTAINER (myIcon->pSubDock));272 CairoEmblem *pEmblem = cairo_dock_make_emblem (pItem->cOverlayIconName, pIcon);
273 cairo_dock_set_emblem_position (pEmblem, CAIRO_DOCK_EMBLEM_MIDDLE);273 cairo_dock_set_emblem_position (pEmblem, CAIRO_DOCK_EMBLEM_MIDDLE);
274 cairo_dock_draw_emblem_on_icon (pEmblem, pIcon, CAIRO_CONTAINER (myIcon->pSubDock));274 cairo_dock_draw_emblem_on_icon (pEmblem, pIcon, CAIRO_CONTAINER (myIcon->pSubDock));
275 cairo_dock_free_emblem (pEmblem);275 cairo_dock_free_emblem (pEmblem);
276276
=== modified file 'System-Monitor/data/System-Monitor.conf.in'
--- System-Monitor/data/System-Monitor.conf.in 2011-08-09 18:08:08 +0000
+++ System-Monitor/data/System-Monitor.conf.in 2011-10-08 22:23:24 +0000
@@ -20,9 +20,12 @@
20#{Set to 0 to use the default applet size}20#{Set to 0 to use the default applet size}
21icon size = 0;021icon size = 0;0
2222
23#b Always display the icon, even when the dock is hidden?23#B Always display the icon, even when the dock is hidden?
24always visi = false24always visi = false
2525
26#C+ Background color to add in this case
27bg color = .8;.8;.8;.5
28
26order=29order=
2730
28#F[Applet's Handbook]31#F[Applet's Handbook]
@@ -59,7 +62,7 @@
59#b Is detached from the dock62#b Is detached from the dock
60initially detached=false63initially detached=false
61#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:64#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:
62#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=utility)}65#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=Utility)}
63accessibility=066accessibility=0
64#b Should be visible on all desktops?67#b Should be visible on all desktops?
65sticky=true68sticky=true
@@ -111,9 +114,11 @@
111#X[Gauge;gtk-dialog-info]114#X[Gauge;gtk-dialog-info]
112frame_gauge=115frame_gauge=
113116
114#h+[@gaugesdir@;gauges;gauges2] Choose one of the available themes:/117#h+[@gaugesdir@;gauges;gauges3;system] Choose one of the available themes:/
115theme = Turbo-night-fuel118theme = Turbo-night-fuel
116119
120#l+[No;With dock orientation;Yes] Rotate applet theme :
121rotate theme = No
117122
118#X[Graph;gtk-dialog-info]123#X[Graph;gtk-dialog-info]
119frame_graph=124frame_graph=
120125
=== modified file 'System-Monitor/src/applet-config.c'
--- System-Monitor/src/applet-config.c 2011-04-20 20:46:51 +0000
+++ System-Monitor/src/applet-config.c 2011-10-08 22:23:24 +0000
@@ -45,6 +45,7 @@
45 myConfig.iDisplayType = CD_CONFIG_GET_INTEGER ("Configuration", "renderer");45 myConfig.iDisplayType = CD_CONFIG_GET_INTEGER ("Configuration", "renderer");
46 46
47 myConfig.cGThemePath = CD_CONFIG_GET_GAUGE_THEME ("Configuration", "theme");47 myConfig.cGThemePath = CD_CONFIG_GET_GAUGE_THEME ("Configuration", "theme");
48 myConfig.iRotateTheme = CD_CONFIG_GET_INTEGER ("Configuration", "rotate theme");
48 49
49 myConfig.iGraphType = CD_CONFIG_GET_INTEGER ("Configuration", "graphic type");50 myConfig.iGraphType = CD_CONFIG_GET_INTEGER ("Configuration", "graphic type");
50 myConfig.bMixGraph = CD_CONFIG_GET_BOOLEAN ("Configuration", "mix graph");51 myConfig.bMixGraph = CD_CONFIG_GET_BOOLEAN ("Configuration", "mix graph");
5152
=== modified file 'System-Monitor/src/applet-init.c'
--- System-Monitor/src/applet-init.c 2011-04-20 20:46:51 +0000
+++ System-Monitor/src/applet-init.c 2011-10-08 22:23:24 +0000
@@ -66,7 +66,8 @@
66 memset (&attr, 0, sizeof (CairoGaugeAttribute));66 memset (&attr, 0, sizeof (CairoGaugeAttribute));
67 pRenderAttr = CAIRO_DATA_RENDERER_ATTRIBUTE (&attr);67 pRenderAttr = CAIRO_DATA_RENDERER_ATTRIBUTE (&attr);
68 pRenderAttr->cModelName = "gauge";68 pRenderAttr->cModelName = "gauge";
69 attr.cThemePath = myConfig.cGThemePath;69 pRenderAttr->iRotateTheme = myConfig.iRotateTheme;
70 attr.cThemePath = myConfig.cGThemePath;
70 }71 }
71 else if (myConfig.iDisplayType == CD_SYSMONITOR_GRAPH)72 else if (myConfig.iDisplayType == CD_SYSMONITOR_GRAPH)
72 {73 {
@@ -74,10 +75,10 @@
74 memset (&attr, 0, sizeof (CairoGraphAttribute));75 memset (&attr, 0, sizeof (CairoGraphAttribute));
75 pRenderAttr = CAIRO_DATA_RENDERER_ATTRIBUTE (&attr);76 pRenderAttr = CAIRO_DATA_RENDERER_ATTRIBUTE (&attr);
76 pRenderAttr->cModelName = "graph";77 pRenderAttr->cModelName = "graph";
77 pRenderAttr->iMemorySize = (myIcon->fWidth > 1 ? myIcon->fWidth : 32); // fWidht peut etre <= 1 en mode desklet au chargement.78 int w, h;
78 //g_print ("pRenderAttr->iMemorySize : %d\n", pRenderAttr->iMemorySize);79 CD_APPLET_GET_MY_ICON_EXTENT (&w, &h);
80 pRenderAttr->iMemorySize = (w > 1 ? w : 32); // fWidth peut etre <= 1 en mode desklet au chargement.
79 attr.iType = myConfig.iGraphType;81 attr.iType = myConfig.iGraphType;
80 attr.iRadius = 10;
81 attr.bMixGraphs = myConfig.bMixGraph;82 attr.bMixGraphs = myConfig.bMixGraph;
82 double fHighColor[CD_SYSMONITOR_NB_MAX_VALUES*3];83 double fHighColor[CD_SYSMONITOR_NB_MAX_VALUES*3];
83 double fLowColor[CD_SYSMONITOR_NB_MAX_VALUES*3];84 double fLowColor[CD_SYSMONITOR_NB_MAX_VALUES*3];
@@ -193,7 +194,10 @@
193 CD_APPLET_SET_QUICK_INFO_ON_MY_ICON (NULL);194 CD_APPLET_SET_QUICK_INFO_ON_MY_ICON (NULL);
194 if (myConfig.iInfoDisplay != CAIRO_DOCK_INFO_ON_LABEL)195 if (myConfig.iInfoDisplay != CAIRO_DOCK_INFO_ON_LABEL)
195 {196 {
196 CD_APPLET_SET_NAME_FOR_MY_ICON (myConfig.defaultTitle);197 if (myConfig.defaultTitle) // has another default name
198 CD_APPLET_SET_NAME_FOR_MY_ICON (myConfig.defaultTitle);
199 else
200 CD_APPLET_SET_NAME_FOR_MY_ICON (myApplet->pModule->pVisitCard->cTitle);
197 }201 }
198 202
199 myData.bAcquisitionOK = TRUE;203 myData.bAcquisitionOK = TRUE;
200204
=== modified file 'System-Monitor/src/applet-monitor.c'
--- System-Monitor/src/applet-monitor.c 2011-08-09 18:08:08 +0000
+++ System-Monitor/src/applet-monitor.c 2011-10-08 22:23:24 +0000
@@ -78,7 +78,12 @@
78 cd_warning ("One or more datas couldn't be retrieved");78 cd_warning ("One or more datas couldn't be retrieved");
79 CD_APPLET_SET_QUICK_INFO_ON_MY_ICON ("N/A"); // plus discret qu'une bulle de dialogue.79 CD_APPLET_SET_QUICK_INFO_ON_MY_ICON ("N/A"); // plus discret qu'une bulle de dialogue.
80 if (myConfig.iInfoDisplay == CAIRO_DOCK_INFO_ON_LABEL)80 if (myConfig.iInfoDisplay == CAIRO_DOCK_INFO_ON_LABEL)
81 CD_APPLET_SET_NAME_FOR_MY_ICON (myConfig.defaultTitle);81 {
82 if (myConfig.defaultTitle) // has another default name
83 CD_APPLET_SET_NAME_FOR_MY_ICON (myConfig.defaultTitle);
84 else
85 CD_APPLET_SET_NAME_FOR_MY_ICON (myApplet->pModule->pVisitCard->cTitle);
86 }
82 memset (s_fValues, 0, sizeof (s_fValues));87 memset (s_fValues, 0, sizeof (s_fValues));
83 CD_APPLET_RENDER_NEW_DATA_ON_MY_ICON (s_fValues);88 CD_APPLET_RENDER_NEW_DATA_ON_MY_ICON (s_fValues);
84 }89 }
8590
=== modified file 'System-Monitor/src/applet-sensors.c'
--- System-Monitor/src/applet-sensors.c 2011-04-20 20:46:51 +0000
+++ System-Monitor/src/applet-sensors.c 2011-10-08 22:23:24 +0000
@@ -214,7 +214,7 @@
214 break;214 break;
215 val = get_value (chip, sf); // rpm215 val = get_value (chip, sf); // rpm
216 if (val == 0)216 if (val == 0)
217 return;217 break;
218 218
219 // alarm219 // alarm
220 sf = sensors_get_subfeature (chip, feature,220 sf = sensors_get_subfeature (chip, feature,
@@ -383,7 +383,7 @@
383 break;383 break;
384 val = get_value (chip, sf); // rpm384 val = get_value (chip, sf); // rpm
385 if (val == 0)385 if (val == 0)
386 return;386 break;
387 387
388 // alarm388 // alarm
389 sf = sensors_get_subfeature (chip, feature,389 sf = sensors_get_subfeature (chip, feature,
390390
=== modified file 'System-Monitor/src/applet-struct.h'
--- System-Monitor/src/applet-struct.h 2011-04-20 20:46:51 +0000
+++ System-Monitor/src/applet-struct.h 2011-10-08 22:23:24 +0000
@@ -80,6 +80,7 @@
80 gint iAlertLimit;80 gint iAlertLimit;
81 gboolean bAlert;81 gboolean bAlert;
82 gboolean bAlertSound;82 gboolean bAlertSound;
83 RendererRotateTheme iRotateTheme;
83} ;84} ;
8485
85typedef struct {86typedef struct {
8687
=== modified file 'Toons/data/Toons.conf.in'
--- Toons/data/Toons.conf.in 2011-08-09 18:08:08 +0000
+++ Toons/data/Toons.conf.in 2011-10-08 22:23:24 +0000
@@ -20,9 +20,12 @@
20#{Set to 0 to use the default applet size}20#{Set to 0 to use the default applet size}
21icon size = 0;021icon size = 0;0
2222
23#b Always display the icon, even when the dock is hidden?23#B Always display the icon, even when the dock is hidden?
24always visi = false24always visi = false
2525
26#C+ Background color to add in this case
27bg color = .8;.8;.8;.5
28
26order=29order=
2730
28#F[Applet's Handbook]31#F[Applet's Handbook]
@@ -60,7 +63,7 @@
60#b Is detached from the dock63#b Is detached from the dock
61initially detached=false64initially detached=false
62#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:65#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:
63#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=utility)}66#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=Utility)}
64accessibility=067accessibility=0
65#b Should be visible on all desktops?68#b Should be visible on all desktops?
66sticky=true69sticky=true
6770
=== modified file 'Xgamma/data/Xgamma.conf.in'
--- Xgamma/data/Xgamma.conf.in 2011-08-09 18:08:08 +0000
+++ Xgamma/data/Xgamma.conf.in 2011-10-08 22:23:24 +0000
@@ -60,7 +60,7 @@
60#b Is detached from the dock60#b Is detached from the dock
61initially detached=false61initially detached=false
62#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:62#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:
63#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=utility)}63#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=Utility)}
64accessibility=064accessibility=0
65#b Should be visible on all desktops?65#b Should be visible on all desktops?
66sticky=true66sticky=true
6767
=== modified file 'alsaMixer/data/AlsaMixer.conf.in'
--- alsaMixer/data/AlsaMixer.conf.in 2011-08-09 18:08:08 +0000
+++ alsaMixer/data/AlsaMixer.conf.in 2011-10-08 22:23:24 +0000
@@ -59,7 +59,7 @@
59#b Is detached from the dock59#b Is detached from the dock
60initially detached=false60initially detached=false
61#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:61#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:
62#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=utility)}62#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=Utility)}
63accessibility=063accessibility=0
64#b Should be visible on all desktops?64#b Should be visible on all desktops?
65sticky=true65sticky=true
@@ -140,17 +140,29 @@
140#l[No;On label;On icon] Display volume :140#l[No;On label;On icon] Display volume :
141display volume = 1141display volume = 1
142142
143#l+[None;Zoom;Transparency;Draw Bar] Effect to apply to the icon when adjusting volume:143#v
144sep_disp_vol =
145
146#Y+[None;0;0;Zoom;1;2;Transparency;1;2;Draw Bar;1;2;Gauge;3;2] Effect to apply to the icon when adjusting volume:
144effect = 3147effect = 3
145148
146#S+ Default icon:149#S+ Default icon:
147#{Leave empty to use the default one.}150#{Leave empty to use the default one.}
148default icon = 151default icon =
149152
153#S+ Mute icon:
154#{Leave empty to use the default one.}
155mute icon =
156
157#h+[@gaugesdir@;gauges;gauges3;sound] Choose one of the available themes:/
158theme = Turbo-night-fuel
159
160#l+[No;With dock orientation;Yes] Rotate applet theme :
161rotate theme = No
162
163#v
164sep_disp =
165
150#S+ Broken icon:166#S+ Broken icon:
151#{Leave empty to use the default one.}167#{Leave empty to use the default one.}
152broken icon = 168broken icon =
153
154#S+ Mute icon:
155#{Leave empty to use the default one.}
156mute icon =
157169
=== modified file 'alsaMixer/src/applet-config.c'
--- alsaMixer/src/applet-config.c 2011-04-20 20:46:51 +0000
+++ alsaMixer/src/applet-config.c 2011-10-08 22:23:24 +0000
@@ -60,6 +60,12 @@
60 60
61 myConfig.iVolumeEffect = CD_CONFIG_GET_INTEGER ("Configuration", "effect");61 myConfig.iVolumeEffect = CD_CONFIG_GET_INTEGER ("Configuration", "effect");
62 62
63 if (myConfig.iVolumeEffect == VOLUME_EFFECT_GAUGE)
64 {
65 myConfig.cGThemePath = CD_CONFIG_GET_GAUGE_THEME ("Configuration", "theme");
66 myConfig.iRotateTheme = CD_CONFIG_GET_INTEGER ("Configuration", "rotate theme");
67 }
68
63 myConfig.cDefaultIcon = CD_CONFIG_GET_STRING ("Configuration", "default icon");69 myConfig.cDefaultIcon = CD_CONFIG_GET_STRING ("Configuration", "default icon");
64 myConfig.cBrokenIcon = CD_CONFIG_GET_STRING ("Configuration", "broken icon");70 myConfig.cBrokenIcon = CD_CONFIG_GET_STRING ("Configuration", "broken icon");
65 myConfig.cMuteIcon = CD_CONFIG_GET_STRING ("Configuration", "mute icon");71 myConfig.cMuteIcon = CD_CONFIG_GET_STRING ("Configuration", "mute icon");
@@ -77,6 +83,7 @@
77 g_free (myConfig.cDefaultIcon);83 g_free (myConfig.cDefaultIcon);
78 g_free (myConfig.cBrokenIcon);84 g_free (myConfig.cBrokenIcon);
79 g_free (myConfig.cMuteIcon);85 g_free (myConfig.cMuteIcon);
86 g_free (myConfig.cGThemePath);
80CD_APPLET_RESET_CONFIG_END87CD_APPLET_RESET_CONFIG_END
8188
8289
@@ -88,7 +95,8 @@
88 }95 }
89 mixer_stop ();96 mixer_stop ();
90 cairo_surface_destroy (myData.pSurface);97 cairo_surface_destroy (myData.pSurface);
91 cairo_surface_destroy (myData.pMuteSurface);98 if (myData.pMuteSurface)
99 cairo_surface_destroy (myData.pMuteSurface);
92 cairo_dock_dialog_unreference (myData.pDialog);100 cairo_dock_dialog_unreference (myData.pDialog);
93 g_free (myData.cErrorMessage);101 g_free (myData.cErrorMessage);
94 g_free (myData.mixer_card_name);102 g_free (myData.mixer_card_name);
95103
=== modified file 'alsaMixer/src/applet-draw.c'
--- alsaMixer/src/applet-draw.c 2010-02-14 00:51:22 +0000
+++ alsaMixer/src/applet-draw.c 2011-10-08 22:23:24 +0000
@@ -26,6 +26,8 @@
26#include "applet-mixer.h"26#include "applet-mixer.h"
27#include "applet-draw.h"27#include "applet-draw.h"
2828
29static void _load_mute_surface (void);
30
2931
30int mixer_element_update_with_event (snd_mixer_elem_t *elem, unsigned int mask)32int mixer_element_update_with_event (snd_mixer_elem_t *elem, unsigned int mask)
31{33{
@@ -62,7 +64,21 @@
62 break;64 break;
63 }65 }
64 66
65 cairo_surface_t *pSurface = (myData.bIsMute ? myData.pMuteSurface : myData.pSurface);67
68 cairo_surface_t *pSurface = NULL;
69 if (myConfig.iVolumeEffect != VOLUME_EFFECT_GAUGE)
70 {
71 if (myData.bIsMute)
72 {
73 if (myData.pMuteSurface == NULL)
74 _load_mute_surface ();
75 pSurface = myData.pMuteSurface;
76 }
77 else
78 {
79 pSurface = myData.pSurface;
80 }
81 }
66 82
67 switch (myConfig.iVolumeEffect)83 switch (myConfig.iVolumeEffect)
68 {84 {
@@ -86,6 +102,18 @@
86 bNeedRedraw = FALSE;102 bNeedRedraw = FALSE;
87 break;103 break;
88 104
105 case VOLUME_EFFECT_GAUGE :
106 {
107 double fPercent;
108 if (myData.bIsMute)
109 fPercent = CAIRO_DATA_RENDERER_UNDEF_VALUE;
110 else
111 fPercent = (double) myData.iCurrentVolume / 100.;
112 CD_APPLET_RENDER_NEW_DATA_ON_MY_ICON (&fPercent);
113 bNeedRedraw = FALSE;
114 }
115 break;
116
89 default :117 default :
90 break;118 break;
91 }119 }
@@ -99,7 +127,6 @@
99 }127 }
100 128
101 CD_APPLET_LEAVE(0);129 CD_APPLET_LEAVE(0);
102 //return 0;
103}130}
104131
105132
@@ -119,3 +146,56 @@
119{146{
120 CD_APPLET_SET_SURFACE_ON_MY_ICON_WITH_BAR (pSurface, myData.iCurrentVolume * .01);147 CD_APPLET_SET_SURFACE_ON_MY_ICON_WITH_BAR (pSurface, myData.iCurrentVolume * .01);
121}148}
149
150
151void mixer_load_surfaces (void)
152{
153 if (myData.pSurface != NULL)
154 {
155 cairo_surface_destroy (myData.pSurface);
156 myData.pSurface = NULL;
157 }
158
159 if (myConfig.cDefaultIcon != NULL)
160 {
161 gchar *cImagePath = cairo_dock_search_icon_s_path (myConfig.cDefaultIcon);
162 if (cImagePath == NULL)
163 cImagePath = cairo_dock_search_image_s_path (myConfig.cDefaultIcon);
164 if (cImagePath != NULL)
165 {
166 myData.pSurface = CD_APPLET_LOAD_SURFACE_FOR_MY_APPLET (cImagePath);
167 g_free (cImagePath);
168 }
169 }
170
171 if (myData.pSurface == NULL)
172 {
173 myData.pSurface = CD_APPLET_LOAD_SURFACE_FOR_MY_APPLET (MY_APPLET_SHARE_DATA_DIR"/default.svg");
174 }
175
176 if (myData.pMuteSurface != NULL)
177 {
178 cairo_surface_destroy (myData.pMuteSurface);
179 myData.pMuteSurface = NULL;
180 } // don't load the mute surface now, as we often won't even need it in the session. we'll load it on demand.
181}
182
183static void _load_mute_surface (void)
184{
185 if (myConfig.cMuteIcon != NULL)
186 {
187 gchar *cImagePath = cairo_dock_search_icon_s_path (myConfig.cMuteIcon);
188 if (cImagePath == NULL)
189 cImagePath = cairo_dock_search_image_s_path (myConfig.cMuteIcon);
190 if (cImagePath != NULL)
191 {
192 myData.pMuteSurface = CD_APPLET_LOAD_SURFACE_FOR_MY_APPLET (cImagePath);
193 g_free (cImagePath);
194 }
195 }
196
197 if (myData.pMuteSurface == NULL)
198 {
199 myData.pMuteSurface = CD_APPLET_LOAD_SURFACE_FOR_MY_APPLET (MY_APPLET_SHARE_DATA_DIR"/mute.svg");
200 }
201}
122202
=== modified file 'alsaMixer/src/applet-draw.h'
--- alsaMixer/src/applet-draw.h 2009-08-26 21:07:39 +0000
+++ alsaMixer/src/applet-draw.h 2011-10-08 22:23:24 +0000
@@ -17,7 +17,6 @@
17* along with this program. If not, see <http://www.gnu.org/licenses/>.17* along with this program. If not, see <http://www.gnu.org/licenses/>.
18*/18*/
1919
20
21#ifndef __APPLET_DRAW__20#ifndef __APPLET_DRAW__
22#define __APPLET_DRAW__21#define __APPLET_DRAW__
2322
@@ -33,5 +32,7 @@
3332
34void mixer_draw_bar (cairo_surface_t *pSurface);33void mixer_draw_bar (cairo_surface_t *pSurface);
3534
35void mixer_load_surfaces (void);
36
3637
37#endif38#endif
3839
=== modified file 'alsaMixer/src/applet-init.c'
--- alsaMixer/src/applet-init.c 2011-08-09 18:08:08 +0000
+++ alsaMixer/src/applet-init.c 2011-10-08 22:23:24 +0000
@@ -45,47 +45,11 @@
45CD_APPLET_DEFINE_END45CD_APPLET_DEFINE_END
4646
4747
48static void _load_surfaces (void)
49{
50 GString *sImagePath = g_string_new ("");
51
52 if (myData.pSurface != NULL)
53 cairo_surface_destroy (myData.pSurface);
54 if (myConfig.cDefaultIcon != NULL)
55 {
56 gchar *cUserImagePath = cairo_dock_generate_file_path (myConfig.cDefaultIcon);
57 myData.pSurface = CD_APPLET_LOAD_SURFACE_FOR_MY_APPLET (cUserImagePath);
58 g_free (cUserImagePath);
59 }
60 else
61 {
62 g_string_printf (sImagePath, "%s/default.svg", MY_APPLET_SHARE_DATA_DIR);
63 myData.pSurface = CD_APPLET_LOAD_SURFACE_FOR_MY_APPLET (sImagePath->str);
64 }
65
66 if (myData.pMuteSurface != NULL)
67 cairo_surface_destroy (myData.pMuteSurface);
68 if (myConfig.cMuteIcon != NULL)
69 {
70 gchar *cUserImagePath = cairo_dock_generate_file_path (myConfig.cMuteIcon);
71 myData.pMuteSurface = CD_APPLET_LOAD_SURFACE_FOR_MY_APPLET (cUserImagePath);
72 g_free (cUserImagePath);
73 }
74 else
75 {
76 g_string_printf (sImagePath, "%s/mute.svg", MY_APPLET_SHARE_DATA_DIR);
77 myData.pMuteSurface = CD_APPLET_LOAD_SURFACE_FOR_MY_APPLET (sImagePath->str);
78 }
79
80 g_string_free (sImagePath, TRUE);
81}
82
83
84static gboolean _cd_mixer_on_enter (GtkWidget* pWidget,48static gboolean _cd_mixer_on_enter (GtkWidget* pWidget,
85 GdkEventCrossing* pEvent,49 GdkEventCrossing* pEvent,
86 gpointer data)50 gpointer data)
87{51{
88 if (myDesklet && myDesklet->container.iHeight > 64)52 if (myData.pScale && myDesklet && myDesklet->container.iHeight > 64)
89 {53 {
90 gtk_widget_show (myData.pScale);54 gtk_widget_show (myData.pScale);
91 }55 }
@@ -94,7 +58,7 @@
94 GdkEventCrossing* pEvent,58 GdkEventCrossing* pEvent,
95 gpointer data)59 gpointer data)
96{60{
97 if (myDesklet && myDesklet->container.iHeight > 64)61 if (myData.pScale && myDesklet && myDesklet->container.iHeight > 64)
98 {62 {
99 if (! myDesklet->container.bInside)63 if (! myDesklet->container.bInside)
100 gtk_widget_hide (myData.pScale);64 gtk_widget_hide (myData.pScale);
@@ -102,6 +66,7 @@
102}66}
10367
104CD_APPLET_INIT_BEGIN68CD_APPLET_INIT_BEGIN
69 // scale widget visibility in desklet
105 if (myDesklet)70 if (myDesklet)
106 {71 {
107 int iScaleWidth = (myDesklet->container.iHeight > 64 ? 15 : 0);72 int iScaleWidth = (myDesklet->container.iHeight > 64 ? 15 : 0);
@@ -121,8 +86,25 @@
121 }86 }
122 }87 }
123 88
124 _load_surfaces ();89 // data renderer
90 if (myConfig.iVolumeEffect == VOLUME_EFFECT_GAUGE)
91 {
92 CairoDataRendererAttribute *pRenderAttr = NULL; // les attributs du data-renderer global.
93 CairoGaugeAttribute attr; // les attributs de la jauge.
94 memset (&attr, 0, sizeof (CairoGaugeAttribute));
95 pRenderAttr = CAIRO_DATA_RENDERER_ATTRIBUTE (&attr);
96 pRenderAttr->cModelName = "gauge";
97 pRenderAttr->iRotateTheme = myConfig.iRotateTheme;
98 attr.cThemePath = myConfig.cGThemePath;
99
100 CD_APPLET_ADD_DATA_RENDERER_ON_MY_ICON (pRenderAttr);
101 }
102 else
103 {
104 mixer_load_surfaces ();
105 }
125 106
107 // listen to the sound card
126 mixer_init (myConfig.card_id);108 mixer_init (myConfig.card_id);
127 109
128 mixer_get_controlled_element ();110 mixer_get_controlled_element ();
@@ -157,12 +139,14 @@
157 myData.iSidCheckVolume = g_timeout_add (1000, (GSourceFunc) mixer_check_events, (gpointer) NULL);139 myData.iSidCheckVolume = g_timeout_add (1000, (GSourceFunc) mixer_check_events, (gpointer) NULL);
158 }140 }
159 141
142 // mouse events
160 CD_APPLET_REGISTER_FOR_CLICK_EVENT;143 CD_APPLET_REGISTER_FOR_CLICK_EVENT;
161 CD_APPLET_REGISTER_FOR_MIDDLE_CLICK_EVENT;144 CD_APPLET_REGISTER_FOR_MIDDLE_CLICK_EVENT;
162 CD_APPLET_REGISTER_FOR_BUILD_MENU_EVENT;145 CD_APPLET_REGISTER_FOR_BUILD_MENU_EVENT;
163 CD_APPLET_REGISTER_FOR_SCROLL_EVENT;146 CD_APPLET_REGISTER_FOR_SCROLL_EVENT;
164 CD_APPLET_REGISTER_FOR_DOUBLE_CLICK_EVENT;147 CD_APPLET_REGISTER_FOR_DOUBLE_CLICK_EVENT;
165148
149 // keyboard events
166 cd_keybinder_bind (myConfig.cShortcut, (CDBindkeyHandler) mixer_on_keybinding_pull, (gpointer)NULL);150 cd_keybinder_bind (myConfig.cShortcut, (CDBindkeyHandler) mixer_on_keybinding_pull, (gpointer)NULL);
167CD_APPLET_INIT_END151CD_APPLET_INIT_END
168152
@@ -186,7 +170,8 @@
186170
187CD_APPLET_RELOAD_BEGIN171CD_APPLET_RELOAD_BEGIN
188 //\_______________ On recharge les donnees qui ont pu changer.172 //\_______________ On recharge les donnees qui ont pu changer.
189 _load_surfaces ();173 if (myConfig.iVolumeEffect != VOLUME_EFFECT_GAUGE)
174 mixer_load_surfaces ();
190 175
191 //\_______________ On recharge le mixer si necessaire.176 //\_______________ On recharge le mixer si necessaire.
192 if (CD_APPLET_MY_CONFIG_CHANGED)177 if (CD_APPLET_MY_CONFIG_CHANGED)
@@ -224,6 +209,22 @@
224 }209 }
225 else210 else
226 {211 {
212 if (myConfig.iVolumeEffect == VOLUME_EFFECT_GAUGE)
213 {
214 CairoDataRendererAttribute *pRenderAttr = NULL; // les attributs du data-renderer global.
215 CairoGaugeAttribute attr; // les attributs de la jauge.
216 memset (&attr, 0, sizeof (CairoGaugeAttribute));
217 pRenderAttr = CAIRO_DATA_RENDERER_ATTRIBUTE (&attr);
218 pRenderAttr->cModelName = "gauge";
219 pRenderAttr->iRotateTheme = myConfig.iRotateTheme;
220 attr.cThemePath = myConfig.cGThemePath;
221
222 if (cairo_dock_get_icon_data_renderer (myIcon))
223 CD_APPLET_RELOAD_MY_DATA_RENDERER (pRenderAttr);
224 else
225 CD_APPLET_ADD_DATA_RENDERER_ON_MY_ICON (pRenderAttr);
226 }
227
227 mixer_element_update_with_event (myData.pControledElement, 1);228 mixer_element_update_with_event (myData.pControledElement, 1);
228 if (myData.iSidCheckVolume == 0)229 if (myData.iSidCheckVolume == 0)
229 myData.iSidCheckVolume = g_timeout_add (1000, (GSourceFunc) mixer_check_events, (gpointer) NULL);230 myData.iSidCheckVolume = g_timeout_add (1000, (GSourceFunc) mixer_check_events, (gpointer) NULL);
@@ -278,16 +279,26 @@
278 g_signal_handler_disconnect (G_OBJECT (myDesklet->container.pWidget), iOnLeaveCallbackID);279 g_signal_handler_disconnect (G_OBJECT (myDesklet->container.pWidget), iOnLeaveCallbackID);
279 }280 }
280 }281 }
282 else
283 {
284 if (CD_APPLET_MY_CONTAINER_TYPE_CHANGED)
285 {
286 gtk_widget_destroy (myData.pScale);
287 myData.pScale = NULL;
288 }
289 }
281 }290 }
282 else291 else
283 {292 {
284 ///\_______________ On redessine notre icone.293 ///\_______________ On redessine notre icone.
294 if (myDesklet && myDesklet->container.iHeight <= 64)
295 gtk_widget_hide (myData.pScale);
296
297 CD_APPLET_RELOAD_MY_DATA_RENDERER (NULL);
298
285 if (myData.pControledElement != NULL)299 if (myData.pControledElement != NULL)
286 {300 {
287 mixer_element_update_with_event (myData.pControledElement, 0);301 mixer_element_update_with_event (myData.pControledElement, 0);
288 }302 }
289
290 if (myDesklet && myDesklet->container.iHeight <= 64)
291 gtk_widget_hide (myData.pScale);
292 }303 }
293CD_APPLET_RELOAD_END304CD_APPLET_RELOAD_END
294305
=== modified file 'alsaMixer/src/applet-mixer.c'
--- alsaMixer/src/applet-mixer.c 2011-08-09 18:08:08 +0000
+++ alsaMixer/src/applet-mixer.c 2011-10-08 22:23:24 +0000
@@ -264,24 +264,10 @@
264}264}
265265
266266
267/**static gboolean on_button_press_dialog (GtkWidget *widget,
268 GdkEventButton *pButton,
269 CairoDialog *pDialog)
270{
271 CD_APPLET_ENTER;
272 cairo_dock_dialog_unreference (pDialog);
273 myData.pDialog = NULL;
274 CD_APPLET_LEAVE(FALSE);
275 //return FALSE;
276}*/
277static void _on_dialog_destroyed (CairoDockModuleInstance *myApplet)267static void _on_dialog_destroyed (CairoDockModuleInstance *myApplet)
278{268{
279 myData.pDialog = NULL;269 myData.pDialog = NULL;
280}270}
281/**static gboolean _on_key_press_dialog (int iClickedButton, GtkWidget *pInteractiveWidget, gpointer *data, CairoDialog *pDialog)
282{
283 myData.pDialog = NULL; // le dialogue est dereference donc tout ce qu'on a a faire c'est prendre en compte ce fait !
284}*/
285void mixer_show_hide_dialog (void)271void mixer_show_hide_dialog (void)
286{272{
287 if (myDesklet)273 if (myDesklet)
@@ -303,15 +289,10 @@
303 attr.cText = cMessage;289 attr.cText = cMessage;
304 attr.cImageFilePath = MY_APPLET_SHARE_DATA_DIR"/"MY_APPLET_ICON_FILE;290 attr.cImageFilePath = MY_APPLET_SHARE_DATA_DIR"/"MY_APPLET_ICON_FILE;
305 attr.pInteractiveWidget = pScale;291 attr.pInteractiveWidget = pScale;
306 ///attr.pActionFunc = (CairoDockActionOnAnswerFunc) _on_key_press_dialog;
307 attr.pUserData = myApplet;292 attr.pUserData = myApplet;
308 attr.pFreeDataFunc = (GFreeFunc)_on_dialog_destroyed;293 attr.pFreeDataFunc = (GFreeFunc)_on_dialog_destroyed;
309 294
310 myData.pDialog = cairo_dock_build_dialog (&attr, myIcon, myContainer);295 myData.pDialog = cairo_dock_build_dialog (&attr, myIcon, myContainer);
311 /**g_signal_connect (G_OBJECT (myData.pDialog->container.pWidget),
312 "button-press-event",
313 G_CALLBACK (on_button_press_dialog),
314 myData.pDialog);*/
315 }296 }
316 else297 else
317 {298 {
@@ -325,5 +306,4 @@
325 CD_APPLET_ENTER;306 CD_APPLET_ENTER;
326 snd_mixer_handle_events (myData.mixer_handle); // ne renvoie pas d'evenements pour nos actions !307 snd_mixer_handle_events (myData.mixer_handle); // ne renvoie pas d'evenements pour nos actions !
327 CD_APPLET_LEAVE(TRUE);308 CD_APPLET_LEAVE(TRUE);
328 //return TRUE;
329}309}
330310
=== modified file 'alsaMixer/src/applet-struct.h'
--- alsaMixer/src/applet-struct.h 2009-08-26 21:07:39 +0000
+++ alsaMixer/src/applet-struct.h 2011-10-08 22:23:24 +0000
@@ -37,6 +37,7 @@
37 VOLUME_EFFECT_ZOOM,37 VOLUME_EFFECT_ZOOM,
38 VOLUME_EFFECT_TRANSPARENCY,38 VOLUME_EFFECT_TRANSPARENCY,
39 VOLUME_EFFECT_BAR,39 VOLUME_EFFECT_BAR,
40 VOLUME_EFFECT_GAUGE,
40 VOLUME_NB_EFFECTS41 VOLUME_NB_EFFECTS
41 } VolumeTypeEffect;42 } VolumeTypeEffect;
4243
@@ -53,6 +54,8 @@
53 gchar *cShortcut;54 gchar *cShortcut;
54 gint iScrollVariation;55 gint iScrollVariation;
55 gboolean bHideScaleOnLeave;56 gboolean bHideScaleOnLeave;
57 gchar *cGThemePath;
58 RendererRotateTheme iRotateTheme;
56 } ;59 } ;
5760
58struct _AppletData {61struct _AppletData {
@@ -68,7 +71,6 @@
68 guint iSidCheckVolume;71 guint iSidCheckVolume;
69 CairoDialog *pDialog;72 CairoDialog *pDialog;
70 cairo_surface_t *pSurface;73 cairo_surface_t *pSurface;
71 //cairo_surface_t *pBrokenSurface;
72 cairo_surface_t *pMuteSurface;74 cairo_surface_t *pMuteSurface;
73 int iCurrentVolume; // volume courant en %.75 int iCurrentVolume; // volume courant en %.
74 gboolean bIsMute;76 gboolean bIsMute;
7577
=== modified file 'clock/data/clock.conf.in'
--- clock/data/clock.conf.in 2011-08-09 18:08:08 +0000
+++ clock/data/clock.conf.in 2011-10-08 22:23:24 +0000
@@ -21,9 +21,12 @@
21#{Set to 0 to use the default applet size}21#{Set to 0 to use the default applet size}
22icon size = 0;022icon size = 0;0
2323
24#b Always display the icon, even when the dock is hidden?24#B Always display the icon, even when the dock is hidden?
25always visi = false25always visi = false
2626
27#C+ Background color to add in this case
28bg color = .8;.8;.8;.5
29
27order=30order=
2831
29#F[Applet's Handbook]32#F[Applet's Handbook]
@@ -62,7 +65,7 @@
62#b Is detached from the dock65#b Is detached from the dock
63initially detached=false66initially detached=false
64#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:67#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:
65#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=utility)}68#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=Utility)}
66accessibility=069accessibility=0
67#b Should be visible on all desktops?70#b Should be visible on all desktops?
68sticky=true71sticky=true
6972
=== modified file 'clock/src/applet-backend-ical.c'
--- clock/src/applet-backend-ical.c 2010-09-18 14:20:27 +0000
+++ clock/src/applet-backend-ical.c 2011-10-08 22:23:24 +0000
@@ -133,7 +133,7 @@
133 {133 {
134 //if( ICAL_VCALENDAR_COMPONENT != icalcomponent_isa(piCalComponent) ) continue;134 //if( ICAL_VCALENDAR_COMPONENT != icalcomponent_isa(piCalComponent) ) continue;
135 cTaskID = g_strdup(icalcomponent_get_uid(piCalComponent));135 cTaskID = g_strdup(icalcomponent_get_uid(piCalComponent));
136 g_print( "...Found task ID=%s\n", cTaskID );136 cd_debug ( "...Found task ID=%s", cTaskID );
137 if( cTaskID != NULL && strcmp( uid, cTaskID ) == 0 )137 if( cTaskID != NULL && strcmp( uid, cTaskID ) == 0 )
138 {138 {
139 break;139 break;
140140
=== removed file 'debian/cairo-dock-plug-ins-data.lintian-overrides'
--- debian/cairo-dock-plug-ins-data.lintian-overrides 2009-08-26 21:07:39 +0000
+++ debian/cairo-dock-plug-ins-data.lintian-overrides 1970-01-01 00:00:00 +0000
@@ -1,5 +0,0 @@
1# Cairo-dock plugin config files uses shebang
2# upstream is warned
3cairo-dock-plug-ins-data: interpreter-not-absolute
4cairo-dock-plug-ins-data: script-not-executable
5cairo-dock-plug-ins-data: unusual-interpreter
60
=== added file 'debian/cairo-dock-plug-ins-integration.lintian-overrides'
--- debian/cairo-dock-plug-ins-integration.lintian-overrides 1970-01-01 00:00:00 +0000
+++ debian/cairo-dock-plug-ins-integration.lintian-overrides 2011-10-08 22:23:24 +0000
@@ -0,0 +1,7 @@
1# Cairo-Dock Plug-Ins are not linked to gldi
2cairo-dock-plug-ins-integration: pkg-has-shlibs-control-file-but-no-actual-shared-libs
3# These integration plug-ins don't need shlibs and don't have to call ldconfig
4# (these plug-ins are enable only if a lib is available)
5cairo-dock-plug-ins-integration: postinst-has-useless-call-to-ldconfig
6cairo-dock-plug-ins-integration: postrm-has-useless-call-to-ldconfig
7cairo-dock-plug-ins-integration: missing-dependency-on-libc
08
=== modified file 'debian/cairo-dock-plug-ins.install'
--- debian/cairo-dock-plug-ins.install 2011-08-09 19:51:45 +0000
+++ debian/cairo-dock-plug-ins.install 2011-10-08 22:23:24 +0000
@@ -1,6 +1,7 @@
1usr/lib*/cairo-dock/libcd-*.so1usr/lib*/cairo-dock/libcd-*.so
2usr/lib*/cli/CDApplet*.dll2usr/lib*/cli/CDApplet*.dll
3usr/lib*/python*/3usr/lib*/python*/dist-packages/*.py
4usr/lib*/python*/dist-packages/*.egg-info
4usr/lib*/libCDApplet*.so5usr/lib*/libCDApplet*.so
5usr/lib*/ruby*/6usr/lib*/ruby*/
6usr/lib*/pkgconfig/7usr/lib*/pkgconfig/
78
=== added file 'debian/cairo-dock-plug-ins.lintian-overrides'
--- debian/cairo-dock-plug-ins.lintian-overrides 1970-01-01 00:00:00 +0000
+++ debian/cairo-dock-plug-ins.lintian-overrides 2011-10-08 22:23:24 +0000
@@ -0,0 +1,6 @@
1# Cairo-Dock Plug-Ins are not linked to gldi
2cairo-dock-plug-ins: pkg-has-shlibs-control-file-but-no-actual-shared-libs
3# Bug reported to upstream.
4cairo-dock-plug-ins: shlib-without-versioned-soname
5# Temporally lintian override: This package is going to be split
6cairo-dock-plug-ins: package-name-doesnt-match-sonames
07
=== modified file 'debian/changelog'
--- debian/changelog 2011-08-11 23:17:39 +0000
+++ debian/changelog 2011-10-08 22:23:24 +0000
@@ -1,3 +1,104 @@
1cairo-dock-plug-ins (2.4.0~2-0ubuntu1) UNRELEASED; urgency=low
2
3 * New upstream bug fix release. (LP: #859984)
4 * Upstream (short) ChangeLog (2.4.0~0beta2 -> 2.4.0~1):
5 - Powermanager: correctly release the reference on the device object
6 - logout: now works if there is no session-manager
7 - Status-Notifier: fixed a small bug
8 (wrong callback in cairo_dock_stop_watching_dbus_name_owner)
9 - Folders: fixed the positionning of the new icon
10 and the dialog when dropping a folder inside the dock
11 and fixed the icon-rendering
12 - Dustbin: use the default theme if no icon is found
13 - Impulse: the default context seems to be ok and not an error
14 - Status-Notifier: On Ubuntu Oneiric (with indicator-0.4)
15 the ApplicationAdded signal has changed and has a new parameter
16 - Disable MeMenu on Oneiric (no longer available with indicator-0.4)
17 - CMakeLists.txt: Improved output messages
18 - Slide view: fixed a small offset in vertical view
19 - musicPlayer:
20 + split MPRIS 1.0 and 2.0 to help debugging and finding the right
21 name of the bug.
22 + 'rhythmbox-client' tool is no longer available: used MPRIS
23 + Disable Amazon service (it no longer work)
24 + Cover: fixed corrupted icons: some players (e.g. the latest version
25 of RB) copy covers on their cache forlder but it takes a few time.
26 + Fixed the update the icon and its name if the player is stopped.
27 + Prevent a crash if the name given by MPRIS is NULL
28 - Powermanager: try to prevent to have a few dialogues at the same time
29 - PowerManager and AlsaMixer: hidden gnome2 or 3 apps if not available
30 - Messaging-Menu: Updated for Natty and Oneiric
31 (dbus-menu gives us GVariant instead of GValue objects)
32 - Alsamixer: fixed a small bug on reload
33 - Dbus: Bash interface: Fixed a typo with emblem positions
34 - Sys-monitor: fixed a bug which prevented from getting
35 the CPU temperature in some cases
36 - Compiz (0.9): type filter: replaced type=utility by type=Utility
37 - Updated the version of all applets that have gauges
38 in order to use the right directory
39 - Wifi: Fixed the status if we are not connected
40 - Dbus: removed a conflict with the Help applet
41 - Messaging-Menu: updated applet-menu.c => Memory leaks on pixbufs
42 - Dbus: Fixed a crash when changing dock theme if a 'third-party' applet
43 is running
44 - Netspeed: in /proc/net/dev, there are 8 values to drop after the card id
45 except if there is whitespaces just after this ':' character
46 and fixed order and value for ON_ICON display
47 - dock-rendering/toto: removed a useless file
48 - Clipper: fixed the loading of the remembered items
49 (they had the wrong type) and fixed a bug if we reduce the list of items
50 - Folders, dustbin, Network-Monitor: tried to not use cast if it's possible
51 - Code cleaned and re-organised a few functions
52 (e.g. emblem references has been renamed)
53 - Removed useless files: powermanager-dbus*
54 - Updating translations
55 - Fixed a few warnings at the compilation
56 - Removed a few useless output messages
57 - Fixed these LP bugs:
58 + Empty trash from the trashcan does not delete files
59 from usb harddisks: LP: #658681
60 + Switcher applet doesn't respect desktop numbers LP: #626782
61 * Upstream (short) ChangeLog (2.4.0~1 -> 2.4.0~2):
62 - Messaging-Menu: fixed a wrong g_object_unref (double free)
63 and a small memory leak
64 - Folders: fixed a tiny warning at the compilation (32bits)
65 - switcher: removed an unnecessary config parameter
66 - Folders: file size: used English instead of French translation.
67 - Indicator applet: Forced a cast to remove an annoying warning
68 due to clumsy dbusmenu_gtkmenu_new() declaration
69 - Fixed the detection of the screensaver
70 - Fixed tiny warnings at the compilation (with CAIRO_CONTAINER)
71 * debian/control:
72 - Updated the version of cairo-dock-[core;data;dev].
73 - Added gvfs as 'Suggests' for cairo-dock-plug-ins-integration
74 (Used for managing files)
75 - Removed 'libthunar-vfs-1-dev' (libthunar-vfs is no longer installed
76 by default since XFCE 4.8 and it is replaced by gvfs)
77 - Removed 'indicator-me' (no longer available
78 and the installation of Cairo-Dock produces an error)
79 - Moved 'indicator-messages' to 'Recommends'
80 * debian/rules:
81 - Updated the name of CMake extras flags
82 * debian/cairo-dock-plug-ins-data.lintian-overrides:
83 - Deleted (now useless)
84 * debian/cairo-dock-plug-ins.lintian-overrides:
85 - Cairo-Dock Plug-Ins are not linked to gldi
86 - shlib-without-versioned-soname: forwarded to upstream.
87 * debian/cairo-dock-plug-ins-integration.lintian-overrides:
88 - Cairo-Dock Plug-Ins are not linked to gldi
89 - ldconfig and shlibs are not needed
90 * debian/cairo-dock-plug-ins.install:
91 - Fixed lintian errors: package-installs-python-bytecode
92 * debian/control: Fixed lintian warnings:
93 - python-script-but-no-python-dep
94 - description-synopsis-starts-with-article
95 * debian/changelog:
96 - Fixed lintian warning: old-fsf-address-in-copyright-file
97 * debian/patches/01-switcher-force-compact-view.patch:
98 - Forced the compact view because the other doesn't work
99
100 -- Matthieu Baerts (matttbe) <matttbe@gmail.com> Sun, 09 Oct 2011 00:19:16 +0200
101
1cairo-dock-plug-ins (2.4.0~0beta2-0ubuntu1) oneiric; urgency=low102cairo-dock-plug-ins (2.4.0~0beta2-0ubuntu1) oneiric; urgency=low
2103
3 * New upstream release. (LP: #823514)104 * New upstream release. (LP: #823514)
4105
=== modified file 'debian/control'
--- debian/control 2011-08-09 19:51:45 +0000
+++ debian/control 2011-10-08 22:23:24 +0000
@@ -14,16 +14,15 @@
14 libxml2-dev,14 libxml2-dev,
15 libxtst-dev,15 libxtst-dev,
16 libglib2.0-dev (>= 2.20),16 libglib2.0-dev (>= 2.20),
17 cairo-dock-data (>= 2.4.0~0beta2),17 cairo-dock-data (>= 2.4.0~1),
18 cairo-dock-core (>= 2.4.0~0beta2),18 cairo-dock-core (>= 2.4.0~1),
19 cairo-dock-dev (>= 2.4.0~0beta2),19 cairo-dock-dev (>= 2.4.0~1),
20 libasound2-dev,20 libasound2-dev,
21 libvte-dev,21 libvte-dev,
22 x11proto-xf86vidmode-dev,22 x11proto-xf86vidmode-dev,
23 libgnome-menu-dev,23 libgnome-menu-dev,
24 libgnomevfs2-dev,24 libgnomevfs2-dev,
25 libgnomeui-dev,25 libgnomeui-dev,
26 libthunar-vfs-1-dev,
27 libgnome-keyring-dev,26 libgnome-keyring-dev,
28 libgnutls-dev,27 libgnutls-dev,
29 libwebkitgtk-dev,28 libwebkitgtk-dev,
@@ -60,6 +59,7 @@
60Depends: cairo-dock-plug-ins-data (>= ${source:Version}),59Depends: cairo-dock-plug-ins-data (>= ${source:Version}),
61 cairo-dock-core (>= 2.0.8.0),60 cairo-dock-core (>= 2.0.8.0),
62 ${misc:Depends}61 ${misc:Depends}
62Suggests: gvfs
63Description: Two plug-ins for cairo-dock for a better integration in GNOME or Xfce63Description: Two plug-ins for cairo-dock for a better integration in GNOME or Xfce
64 Cairo-dock-plug-ins is a set of plug-ins for Cairo-dock. It provides some new 64 Cairo-dock-plug-ins is a set of plug-ins for Cairo-dock. It provides some new
65 functionnalities like controling music players or note-taking, a clock or a65 functionnalities like controling music players or note-taking, a clock or a
@@ -76,13 +76,13 @@
76 cairo-dock-core (>= 2.0.8.0),76 cairo-dock-core (>= 2.0.8.0),
77 curl,77 curl,
78 wget,78 wget,
79 python,
79 ${shlibs:Depends}, 80 ${shlibs:Depends},
80 ${misc:Depends}81 ${misc:Depends}
81Suggests: compiz,82Suggests: compiz,
82 gnote83 gnote,
83Recommends: indicator-messages,84 indicator-messages
84 indicator-me85Description: Set of plug-ins for cairo-dock
85Description: A set of plug-ins for cairo-dock
86 Cairo-dock-plug-ins is a set of plug-ins for Cairo-dock. It provides some new 86 Cairo-dock-plug-ins is a set of plug-ins for Cairo-dock. It provides some new
87 functionnalities like controling music players or note-taking, a clock or a87 functionnalities like controling music players or note-taking, a clock or a
88 desktop switcher but also some views, dialogs and desklets skins, etc.88 desktop switcher but also some views, dialogs and desklets skins, etc.
8989
=== modified file 'debian/copyright'
--- debian/copyright 2011-08-09 19:51:45 +0000
+++ debian/copyright 2011-10-08 22:23:24 +0000
@@ -18,8 +18,8 @@
18 *18 *
19 * You should have received a copy of the GNU Lesser General Public19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the20 * License along with this library; if not, write to the
21 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,21 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
22 * Boston, MA 02111-1307, USA.22 * MA 02110-1301, USA.
2323
24Files: systray/src/cd-tray.h24Files: systray/src/cd-tray.h
25 systray/src/systray-config.*25 systray/src/systray-config.*
@@ -40,7 +40,8 @@
40 *40 *
41 * You should have received a copy of the GNU General Public License41 * You should have received a copy of the GNU General Public License
42 * along with this program; if not, write to the Free Software42 * along with this program; if not, write to the Free Software
43 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA43 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
44 * MA 02110-1301, USA.
4445
45Files: terminal/*46Files: terminal/*
46Copyright: 2007, 2008 GESTES Cedric and Fabrice Rey47Copyright: 2007, 2008 GESTES Cedric and Fabrice Rey
@@ -188,4 +189,5 @@
188 *189 *
189 * You should have received a copy of the GNU General Public License190 * You should have received a copy of the GNU General Public License
190 * along with this program; if not, write to the Free Software191 * along with this program; if not, write to the Free Software
191 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA192 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
193 * MA 02110-1301, USA.
192194
=== added file 'debian/patches/01-switcher-force-compact-view.patch'
--- debian/patches/01-switcher-force-compact-view.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/01-switcher-force-compact-view.patch 2011-10-08 22:23:24 +0000
@@ -0,0 +1,34 @@
1## From: Matthieu Baerts (matttbe) <matttbe@gmail.com>
2## Description: Forced the compact view because the other doesn't work
3## Forwarded: yes
4Index: cairo-dock-plug-ins/switcher/src/applet-config.c
5===================================================================
6--- cairo-dock-plug-ins.orig/switcher/src/applet-config.c 2011-10-08 23:26:53.222924952 +0200
7+++ cairo-dock-plug-ins/switcher/src/applet-config.c 2011-10-08 23:26:53.306924951 +0200
8@@ -26,7 +26,7 @@
9
10 CD_APPLET_GET_CONFIG_BEGIN
11 //\_________________ On recupere toutes les valeurs de notre fichier de conf.
12- myConfig.bCompactView = CD_CONFIG_GET_BOOLEAN_WITH_DEFAULT ("Configuration", "Vue Simple", TRUE);
13+ myConfig.bCompactView = TRUE; // CD_CONFIG_GET_BOOLEAN_WITH_DEFAULT ("Configuration", "Vue Simple", TRUE);
14 myConfig.bPreserveScreenRatio = CD_CONFIG_GET_BOOLEAN ("Configuration", "preserve ratio");
15 myConfig.bMapWallpaper = CD_CONFIG_GET_BOOLEAN_WITH_DEFAULT ("Configuration", "Map Wallpaper", TRUE);
16 myConfig.bDisplayNumDesk = CD_CONFIG_GET_BOOLEAN_WITH_DEFAULT ("Configuration", "display numero desktop", TRUE);
17Index: cairo-dock-plug-ins/.bzr/checkout/dirstate
18===================================================================
19Binary files cairo-dock-plug-ins.orig/.bzr/checkout/dirstate 2011-10-08 23:28:01.502925141 +0200 and cairo-dock-plug-ins/.bzr/checkout/dirstate 2011-10-08 23:27:09.198924995 +0200 differ
20Index: cairo-dock-plug-ins/switcher/data/switcher.conf.in
21===================================================================
22--- cairo-dock-plug-ins.orig/switcher/data/switcher.conf.in 2011-10-08 23:28:00.542925138 +0200
23+++ cairo-dock-plug-ins/switcher/data/switcher.conf.in 2011-10-08 23:27:55.810925124 +0200
24@@ -101,10 +101,6 @@
25 #F[Configuration]
26 frame_conf =
27
28-#B Use the compact mode?
29-#{All desktops will be drawn on the main icon. Otherwise a sub-dock will contain all desktops.}
30-Vue Simple = true
31-
32 #b Preserve the ratio of the screen ?
33 preserve ratio = true
34
035
=== added file 'debian/patches/series'
--- debian/patches/series 1970-01-01 00:00:00 +0000
+++ debian/patches/series 2011-10-08 22:23:24 +0000
@@ -0,0 +1,1 @@
101-switcher-force-compact-view.patch
02
=== modified file 'debian/rules'
--- debian/rules 2011-04-20 20:46:51 +0000
+++ debian/rules 2011-10-08 22:23:24 +0000
@@ -3,10 +3,10 @@
33
4DH_ALWAYS_EXCLUDE=CVS:.bzr4DH_ALWAYS_EXCLUDE=CVS:.bzr
55
6DEB_CMAKE_EXTRA_FLAGS += -Denable_gnome_integration=yes \6DEB_CMAKE_EXTRA_FLAGS += -Denable-gnome-integration=yes \
7 -Denable_old_gnome_integration=no \7 -Denable-old-gnome-integration=no \
8 -Denable_kde_integration=yes \8 -Denable-kde-integration=yes \
9 -Denable_xfce_integration=yes \9 -Denable-xfce-integration=yes \
10 -DROOT_PREFIX=$(CURDIR)/debian/tmp10 -DROOT_PREFIX=$(CURDIR)/debian/tmp
1111
12include /usr/share/cdbs/1/rules/debhelper.mk12include /usr/share/cdbs/1/rules/debhelper.mk
1313
=== modified file 'desklet-rendering/src/rendering-desklet-panel.c'
--- desklet-rendering/src/rendering-desklet-panel.c 2011-08-09 18:08:08 +0000
+++ desklet-rendering/src/rendering-desklet-panel.c 2011-10-08 22:23:24 +0000
@@ -62,7 +62,7 @@
62 double w = pDesklet->container.iWidth - 2 * pPanel->fMargin;62 double w = pDesklet->container.iWidth - 2 * pPanel->fMargin;
63 double h = pDesklet->container.iHeight - 2 * pPanel->fMargin;63 double h = pDesklet->container.iHeight - 2 * pPanel->fMargin;
64 pPanel->iMainIconSize = MIN (w, h) / 3;64 pPanel->iMainIconSize = MIN (w, h) / 3;
65 g_print (" desklet: %dx%d\n", (int)w, (int)h);65 cd_debug (" desklet: %dx%d", (int)w, (int)h);
66 66
67 int iNbIcons = 0;67 int iNbIcons = 0;
68 Icon *pIcon;68 Icon *pIcon;
@@ -90,7 +90,7 @@
90 {90 {
91 q = (int) ceil ((double)pPanel->iNbIcons / p);91 q = (int) ceil ((double)pPanel->iNbIcons / p);
92 iSize = MIN ((h - p * dy) / p - dh, ((w - (q - 1) * dx) / q - dw) / 2);92 iSize = MIN ((h - p * dy) / p - dh, ((w - (q - 1) * dx) / q - dw) / 2);
93 g_print (" %dx%d -> %d\n", p, q, iSize);93 cd_debug (" %dx%d -> %d", p, q, iSize);
94 if (iSize > pPanel->iIconSize)94 if (iSize > pPanel->iIconSize)
95 {95 {
96 pPanel->iIconSize = iSize;96 pPanel->iIconSize = iSize;
@@ -107,7 +107,7 @@
107 pPanel->iIconSize = MIN ((h - p * dy) / p - dh, ((w - (q - 1) * dx) / q - dw) / 2);107 pPanel->iIconSize = MIN ((h - p * dy) / p - dh, ((w - (q - 1) * dx) / q - dw) / 2);
108 }108 }
109 pPanel->iIconSize = MIN (pPanel->iIconSize, pPanel->iMainIconSize);109 pPanel->iIconSize = MIN (pPanel->iIconSize, pPanel->iMainIconSize);
110 g_print (" panel desklet: %dx%d, %d\n", pPanel->iNbLines, pPanel->iNbColumns, pPanel->iIconSize);110 cd_debug (" panel desklet: %dx%d, %d", pPanel->iNbLines, pPanel->iNbColumns, pPanel->iIconSize);
111 111
112 if ((h - pPanel->iNbLines * (pPanel->iIconSize + dh)) / pPanel->iNbLines > dy)112 if ((h - pPanel->iNbLines * (pPanel->iIconSize + dh)) / pPanel->iNbLines > dy)
113 {113 {
114114
=== modified file 'dnd2share/data/dnd2share.conf.in'
--- dnd2share/data/dnd2share.conf.in 2011-08-09 18:08:08 +0000
+++ dnd2share/data/dnd2share.conf.in 2011-10-08 22:23:24 +0000
@@ -55,7 +55,7 @@
55#b Is detached from the dock55#b Is detached from the dock
56initially detached=false56initially detached=false
57#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:57#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:
58#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=utility)}58#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=Utility)}
59accessibility=059accessibility=0
60#b Should be visible on all desktops?60#b Should be visible on all desktops?
61sticky=true61sticky=true
6262
=== modified file 'dnd2share/src/applet-dnd2share.c'
--- dnd2share/src/applet-dnd2share.c 2011-04-20 20:46:51 +0000
+++ dnd2share/src/applet-dnd2share.c 2011-10-08 22:23:24 +0000
@@ -416,7 +416,7 @@
416 416
417 if (myConfig.bDisplayLastImage)417 if (myConfig.bDisplayLastImage)
418 {418 {
419 CD_APPLET_SET_LOCAL_IMAGE_ON_MY_ICON (MY_APPLET_ICON_FILE);419 CD_APPLET_SET_IMAGE_ON_MY_ICON (MY_APPLET_SHARE_DATA_DIR"/"MY_APPLET_ICON_FILE);
420 }420 }
421}421}
422422
423423
=== modified file 'dnd2share/src/applet-notifications.c'
--- dnd2share/src/applet-notifications.c 2011-08-09 18:08:08 +0000
+++ dnd2share/src/applet-notifications.c 2011-10-08 22:23:24 +0000
@@ -314,7 +314,7 @@
314314
315315
316CD_APPLET_ON_DROP_DATA_BEGIN316CD_APPLET_ON_DROP_DATA_BEGIN
317 g_print ("DND2SHARE : drop de '%s'\n", CD_APPLET_RECEIVED_DATA);317 cd_debug ("DND2SHARE : drop de '%s'", CD_APPLET_RECEIVED_DATA);
318 _on_drop_data (CD_APPLET_RECEIVED_DATA);318 _on_drop_data (CD_APPLET_RECEIVED_DATA);
319CD_APPLET_ON_DROP_DATA_END319CD_APPLET_ON_DROP_DATA_END
320320
@@ -403,19 +403,18 @@
403 403
404 CD_APPLET_ADD_IN_MENU_WITH_STOCK (D_("Send the clipboard's content"), GTK_STOCK_PASTE, _send_clipboard, CD_APPLET_MY_MENU);404 CD_APPLET_ADD_IN_MENU_WITH_STOCK (D_("Send the clipboard's content"), GTK_STOCK_PASTE, _send_clipboard, CD_APPLET_MY_MENU);
405 405
406 GtkWidget *pHistoryMenu = gtk_menu_new ();406 GtkWidget *pHistoryMenu = gtk_menu_new (); // we don't use CD_APPLET_ADD_SUB_MENU_WITH_IMAGE, because we want to be able to set the menu-item unsensitive.
407 GtkWidget *mi = gtk_image_menu_item_new_with_label (D_("History"));407 GtkWidget *mi = gtk_image_menu_item_new_with_label (D_("History"));
408 408
409 GtkWidget *im = gtk_image_new_from_stock (GTK_STOCK_INDEX, GTK_ICON_SIZE_MENU);409 GtkWidget *im = gtk_image_new_from_stock (GTK_STOCK_INDEX, GTK_ICON_SIZE_MENU);
410#if (GTK_MAJOR_VERSION > 2 || GTK_MINOR_VERSION >= 16)410 #if (GTK_MAJOR_VERSION > 2 || GTK_MINOR_VERSION >= 16)
411 gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (mi), TRUE);411 gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (mi), TRUE);
412#endif412 #endif
413 gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (mi), im);413 gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (mi), im);
414 414
415 gtk_menu_shell_append (GTK_MENU_SHELL (CD_APPLET_MY_MENU), mi); 415 gtk_menu_shell_append (GTK_MENU_SHELL (CD_APPLET_MY_MENU), mi);
416 gtk_menu_item_set_submenu (GTK_MENU_ITEM (mi), pHistoryMenu);416 gtk_menu_item_set_submenu (GTK_MENU_ITEM (mi), pHistoryMenu);
417 417
418 //GtkWidget *pHistoryMenu = CD_APPLET_ADD_SUB_MENU_WITH_IMAGE (D_("History"), CD_APPLET_MY_MENU, GTK_STOCK_INDEX);
419 if (myData.pUpoadedItems != NULL)418 if (myData.pUpoadedItems != NULL)
420 {419 {
421 CDSiteBackend *pBackend;420 CDSiteBackend *pBackend;
@@ -453,7 +452,10 @@
453 }452 }
454 if (cPreview == NULL)453 if (cPreview == NULL)
455 {454 {
456 cairo_dock_fm_get_file_info (pItem->cLocalPath, &cName, &cURI, &cPreview, &bIsDirectory, &iVolumeID, &fOrder, 0);455 gchar *cIconName = NULL;
456 cairo_dock_fm_get_file_info (pItem->cLocalPath, &cName, &cURI, &cIconName, &bIsDirectory, &iVolumeID, &fOrder, 0);
457 cPreview = cairo_dock_search_icon_s_path (cIconName);
458 g_free (cIconName);
457 g_free (cName);459 g_free (cName);
458 cName = NULL;460 cName = NULL;
459 g_free (cURI);461 g_free (cURI);
@@ -491,7 +493,7 @@
491 else493 else
492 gtk_widget_set_sensitive (GTK_WIDGET (mi), FALSE);494 gtk_widget_set_sensitive (GTK_WIDGET (mi), FALSE);
493495
494 pMenuItem = gtk_check_menu_item_new_with_label (_("Use only a files hosting site"));496 pMenuItem = gtk_check_menu_item_new_with_label (D_("Use only a files hosting site"));
495 gtk_menu_shell_append (GTK_MENU_SHELL (CD_APPLET_MY_MENU), pMenuItem);497 gtk_menu_shell_append (GTK_MENU_SHELL (CD_APPLET_MY_MENU), pMenuItem);
496 if (myConfig.bUseOnlyFileType)498 if (myConfig.bUseOnlyFileType)
497 gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (pMenuItem), TRUE);499 gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (pMenuItem), TRUE);
498500
=== modified file 'dock-rendering/src/rendering-diapo-simple.c'
--- dock-rendering/src/rendering-diapo-simple.c 2011-08-09 18:08:08 +0000
+++ dock-rendering/src/rendering-diapo-simple.c 2011-10-08 22:23:24 +0000
@@ -81,10 +81,6 @@
81 *gridX = index % nRowsX;81 *gridX = index % nRowsX;
82 *gridY = index / nRowsX;82 *gridY = index / nRowsX;
83}83}
84static inline guint _get_index_from_gridXY (guint nRowsX, guint gridX, guint gridY)
85{
86 return gridX + gridY * nRowsX;
87}
8884
89static guint _cd_rendering_diapo_simple_guess_grid (GList *pIconList, guint *nRowX, guint *nRowY)85static guint _cd_rendering_diapo_simple_guess_grid (GList *pIconList, guint *nRowX, guint *nRowY)
90{86{
@@ -820,12 +816,13 @@
820 int iOffsetY;816 int iOffsetY;
821 if (pDock->container.bDirectionUp)817 if (pDock->container.bDirectionUp)
822 iOffsetY = .5 * pDock->iMaxIconHeight * pDock->container.fRatio * (my_diapo_simple_fScaleMax - 1) + // les icones de la 1ere ligne zooment818 iOffsetY = .5 * pDock->iMaxIconHeight * pDock->container.fRatio * (my_diapo_simple_fScaleMax - 1) + // les icones de la 1ere ligne zooment
823 myIconsParam.iLabelSize + // le texte des icones de la 1ere ligne819 (pDock->container.bIsHorizontal ? myIconsParam.iLabelSize : .5*myIconsParam.iLabelSize) + // le texte des icones de la 1ere ligne
824 .5 * my_diapo_simple_lineWidth + // demi-ligne du haut;820 .5 * my_diapo_simple_lineWidth + // demi-ligne du haut;
825 fScrollOffset;821 fScrollOffset;
826 else822 else
827 iOffsetY = .5 * pDock->iMaxIconHeight * pDock->container.fRatio * (my_diapo_simple_fScaleMax - 1) + // les icones de la 1ere ligne zooment823 iOffsetY = .5 * pDock->iMaxIconHeight * pDock->container.fRatio * (my_diapo_simple_fScaleMax - 1) + // les icones de la 1ere ligne zooment
828 .5 * my_diapo_simple_lineWidth + // demi-ligne du bas;824 .5 * my_diapo_simple_lineWidth + // demi-ligne du bas;
825 (pDock->container.bIsHorizontal ? 0 : myIconsParam.iLabelSize/2) +
829 fScrollOffset;826 fScrollOffset;
830 double fFoldingX = (pDock->fFoldingFactor > .2 ? (pDock->fFoldingFactor - .2) / .8 : 0.); // placement de 1 a 0.2827 double fFoldingX = (pDock->fFoldingFactor > .2 ? (pDock->fFoldingFactor - .2) / .8 : 0.); // placement de 1 a 0.2
831 double fFoldingY = (pDock->fFoldingFactor > .5 ? (pDock->fFoldingFactor - .5) / .5 : 0.); // placement de 1 a 0.5828 double fFoldingY = (pDock->fFoldingFactor > .5 ? (pDock->fFoldingFactor - .5) / .5 : 0.); // placement de 1 a 0.5
832829
=== modified file 'dock-rendering/src/rendering-rainbow.c'
--- dock-rendering/src/rendering-rainbow.c 2011-08-09 18:08:08 +0000
+++ dock-rendering/src/rendering-rainbow.c 2011-10-08 22:23:24 +0000
@@ -314,7 +314,7 @@
314 x_abs = fFlatDockWidth+1;314 x_abs = fFlatDockWidth+1;
315 315
316 float x_cumulated = 0, fXMiddle, fDeltaExtremum;316 float x_cumulated = 0, fXMiddle, fDeltaExtremum;
317 double fPhase, fScale, fX;317 double fPhase, fX, fScale = 0.0;
318 int iNumRow, iPointedRow=-1;318 int iNumRow, iPointedRow=-1;
319 for (iNumRow = 0; iNumRow < iNbRows; iNumRow ++)319 for (iNumRow = 0; iNumRow < iNbRows; iNumRow ++)
320 {320 {
321321
=== removed file 'dock-rendering/toto'
--- dock-rendering/toto 2010-08-10 00:05:57 +0000
+++ dock-rendering/toto 1970-01-01 00:00:00 +0000
@@ -1,217 +0,0 @@
1message :  (cairo-dock.c:main:427) 
2 Compiled with Glitz (hardware acceleration support)n
3message :  (cairo-dock-dock-manager.c:cairo_dock_initialize_dock_manager:59) 
4
5message :  (cairo-dock-renderer-manager.c:cairo_dock_initialize_renderer_manager:135) 
6
7message :  (cairo-dock-renderer-manager.c:cairo_dock_register_renderer:57) 
8 cairo_dock_register_renderer (default)
9message :  (cairo-dock.c:main:506) 
10 environnement de bureau : 2
11message :  (cairo-dock-modules.c:cairo_dock_preload_module_from_directory:268) 
12 cairo_dock_preload_module_from_directory (/users/m340689/usr/lib/cairo-dock)
13message :  (cairo-dock-renderer-manager.c:cairo_dock_register_desklet_renderer:77) 
14 cairo_dock_register_desklet_renderer (Tree)
15message :  (cairo-dock-renderer-manager.c:cairo_dock_register_desklet_renderer:77) 
16 cairo_dock_register_desklet_renderer (Caroussel)
17message :  (cairo-dock-renderer-manager.c:cairo_dock_register_desklet_renderer:77) 
18 cairo_dock_register_desklet_renderer (Simple)
19message :  (cairo-dock-renderer-manager.c:cairo_dock_register_desklet_renderer:77) 
20 cairo_dock_register_desklet_renderer (Controler)
21message :  (cairo-dock-renderer-manager.c:cairo_dock_register_desklet_renderer:77) 
22 cairo_dock_register_desklet_renderer (Mediaplayer)
23message :  (cairo-dock-renderer-manager.c:cairo_dock_register_dialog_renderer:122) 
24 cairo_dock_register_dialog_renderer (Text)
25message :  (cairo-dock-renderer-manager.c:cairo_dock_set_renderer:159) 
26 cairo_dock_set_renderer ((null))
27message :  (cairo-dock-keyfile-utilities.c:cairo_dock_write_keys_to_file:18) 
28 cairo_dock_write_keys_to_file (/users/m340689/.cairo-dock/current_theme/cairo-dock.conf)
29message :  (cairo-dock-dock-manager.c:cairo_dock_deactivate_temporary_auto_hide:485) 
30
31message :  (cairo-dock-config.c:cairo_dock_read_conf_file:683) 
32 g_cMainDockDefaultRendererName <- default
33warning :  (cairo-dock-config.c:cairo_dock_read_conf_file:1121) 
34 Sorry but your X server does not support the extension.
35 You can't have window thumbnails in the dock
36message :  (cairo-dock-dock-factory.c:cairo_dock_build_docks_tree_with_desktop_files:558) 
37 cairo_dock_build_docks_tree_with_desktop_files (/users/m340689/.cairo-dock/current_theme/launchers)
38message :  (cairo-dock-launcher-factory.c:cairo_dock_load_icon_info_from_desktop_file:367) 
39 no class defined for the launcher 01BitTorrent.desktop
40 we will assume that its class is 'transmission-gtk'
41message :  (cairo-dock-launcher-factory.c:cairo_dock_create_icon_from_desktop_file:402) 
42 + BitTorrent/transmission-gtk
43message :  (cairo-dock-class-manager.c:cairo_dock_inhibate_class:254) 
44 cairo_dock_inhibate_class (transmission-gtk)
45message :  (cairo-dock-launcher-factory.c:cairo_dock_load_icon_info_from_desktop_file:367) 
46 no class defined for the launcher 01bmp.desktop
47 we will assume that its class is 'beep-media-player'
48message :  (cairo-dock-launcher-factory.c:cairo_dock_create_icon_from_desktop_file:402) 
49 + Musique/beep-media-player
50message :  (cairo-dock-class-manager.c:cairo_dock_inhibate_class:254) 
51 cairo_dock_inhibate_class (beep-media-player)
52message :  (cairo-dock-launcher-factory.c:cairo_dock_create_icon_from_desktop_file:402) 
53 + Navigateur Web Firefox/firefox
54message :  (cairo-dock-class-manager.c:cairo_dock_inhibate_class:254) 
55 cairo_dock_inhibate_class (firefox)
56message :  (cairo-dock-launcher-factory.c:cairo_dock_load_icon_info_from_desktop_file:367) 
57 no class defined for the launcher 01gnome-terminal.desktop
58 we will assume that its class is 'gnome-terminal'
59message :  (cairo-dock-launcher-factory.c:cairo_dock_create_icon_from_desktop_file:402) 
60 + Console/gnome-terminal
61message :  (cairo-dock-class-manager.c:cairo_dock_inhibate_class:254) 
62 cairo_dock_inhibate_class (gnome-terminal)
63message :  (cairo-dock-launcher-factory.c:cairo_dock_load_icon_info_from_desktop_file:367) 
64 no class defined for the launcher 01nautilus.desktop
65 we will assume that its class is 'nautilus'
66message :  (cairo-dock-launcher-factory.c:cairo_dock_create_icon_from_desktop_file:402) 
67 + Fichiers/nautilus
68message :  (cairo-dock-class-manager.c:cairo_dock_inhibate_class:254) 
69 cairo_dock_inhibate_class (nautilus)
70message :  (cairo-dock-launcher-factory.c:cairo_dock_create_icon_from_desktop_file:402) 
71 + Courrier/thunderbird-bin
72message :  (cairo-dock-class-manager.c:cairo_dock_inhibate_class:254) 
73 cairo_dock_inhibate_class (thunderbird-bin)
74message :  (cairo-dock-application-factory.c:cairo_dock_create_icon_from_xwindow:417) 
75 recuperation de 'm340689 on mulx0202: /users/m340689/plug-ins/rendering - modules - Konsole' (bIsHidden : 0)
76message :  (cairo-dock-class-manager.c:cairo_dock_add_appli_to_class:193) 
77 cairo_dock_add_appli_to_class (konsole)
78message :  (cairo-dock-applications-manager.c:cairo_dock_insert_appli_in_dock:1115) 
79 cairo_dock_insert_appli_in_dock (m340689 on mulx0202: /users/m340689/plug-ins/rendering - modules - Konsole, 71303176)
80message :  (cairo-dock-class-manager.c:cairo_dock_prevent_inhibated_class:303) 
81
82message :  (cairo-dock-application-factory.c:cairo_dock_manage_appli_class:236) 
83 cairo_dock_manage_appli_class (m340689 on mulx0202: /users/m340689/plug-ins/rendering - modules - Konsole)
84message :  (cairo-dock-dock-factory.c:cairo_dock_insert_icon_in_dock_full:705) 
85 separateur necessaire
86message :  (cairo-dock-dock-factory.c:cairo_dock_insert_icon_in_dock_full:752) 
87 insertion de m340689 on mulx0202: /users/m340689/plug-ins/rendering - modules - Konsole -> iSeparatorType : 3
88message :  (cairo-dock-applications-manager.c:cairo_dock_insert_appli_in_dock:1126) 
89 insertion de m340689 on mulx0202: /users/m340689/plug-ins/rendering - modules - Konsole complete (0,00 48,00x48,00) dans _MainDock_
90message :  (cairo-dock-application-factory.c:cairo_dock_create_icon_from_xwindow:417) 
91 recuperation de 'rendering-diapo-simple.c - Kate' (bIsHidden : 0)
92Impossible de trouver l'icône « kate ». Le thème « hicolor »
93n'a pas non plus été trouvé. Peut-être avez-vous besoin de
94l'installer. Vous pouvez obtenir une copie à :
95 http://icon-theme.freedesktop.org/releases
96message :  (cairo-dock-class-manager.c:cairo_dock_add_appli_to_class:193) 
97 cairo_dock_add_appli_to_class (kate)
98message :  (cairo-dock-applications-manager.c:cairo_dock_insert_appli_in_dock:1115) 
99 cairo_dock_insert_appli_in_dock (rendering-diapo-simple.c - Kate, 79691791)
100message :  (cairo-dock-class-manager.c:cairo_dock_prevent_inhibated_class:303) 
101
102message :  (cairo-dock-application-factory.c:cairo_dock_manage_appli_class:236) 
103 cairo_dock_manage_appli_class (rendering-diapo-simple.c - Kate)
104message :  (cairo-dock-applications-manager.c:cairo_dock_insert_appli_in_dock:1126) 
105 insertion de rendering-diapo-simple.c - Kate complete (0,00 48,00x48,00) dans _MainDock_
106message :  (cairo-dock-modules.c:cairo_dock_activate_module:453) 
107 cairo_dock_activate_module (clock)
108cairo_dock_instanciate_module (/users/m340689/.cairo-dock/current_theme/plug-ins/clock/clock.conf)
109 ce module est une applet
110message :  (cairo-dock-applet-factory.c:cairo_dock_create_applet_surface:31) 
111 cairo_dock_create_applet_surface (48,00x48,00 x 2,00 / 1)
112message :  (cairo-dock-applet-factory.c:cairo_dock_create_applet_surface:40) 
113 -> 48,00x48,00 x 2,00
114cairo_dock_read_module_config (40f0b480)
115message :  (cairo-dock-keyfile-utilities.c:cairo_dock_write_keys_to_file:18) 
116 cairo_dock_write_keys_to_file (/users/m340689/.cairo-dock/current_theme/plug-ins/clock/clock.conf)
117message :  (applet-init.c:init:81) 
118 init (/users/m340689/.cairo-dock/current_theme/plug-ins/clock/clock.conf)
119
120message :  (applet-init.c:_load_theme:39) 
121 _load_theme (/users/m340689/usr/share/cairo-dock/plug-ins/clock/themes/silvia)
122message :  (cairo-dock-dock-factory.c:cairo_dock_insert_icon_in_dock_full:705) 
123 separateur necessaire
124message :  (cairo-dock-dock-factory.c:cairo_dock_insert_icon_in_dock_full:752) 
125 insertion de Poland -> iSeparatorType : 1
126message :  (cairo-dock-modules.c:cairo_dock_activate_module:453) 
127 cairo_dock_activate_module (rendering)
128message :  (cairo-dock-renderer-manager.c:cairo_dock_register_desklet_renderer:77) 
129 cairo_dock_register_desklet_renderer (Tree)
130message :  (cairo-dock-renderer-manager.c:cairo_dock_register_desklet_renderer:77) 
131 cairo_dock_register_desklet_renderer (Caroussel)
132message :  (cairo-dock-renderer-manager.c:cairo_dock_register_desklet_renderer:77) 
133 cairo_dock_register_desklet_renderer (Simple)
134message :  (cairo-dock-renderer-manager.c:cairo_dock_register_desklet_renderer:77) 
135 cairo_dock_register_desklet_renderer (Controler)
136message :  (cairo-dock-renderer-manager.c:cairo_dock_register_desklet_renderer:77) 
137 cairo_dock_register_desklet_renderer (Mediaplayer)
138message :  (cairo-dock-renderer-manager.c:cairo_dock_register_dialog_renderer:122) 
139 cairo_dock_register_dialog_renderer (Text)
140cairo_dock_instanciate_module (/users/m340689/.cairo-dock/current_theme/plug-ins/rendering/rendering.conf)
141 ce module est un plug-in
142cairo_dock_read_module_config (40f50ba0)
143message :  (rendering-init.c:init:120) 
144 init (/users/m340689/.cairo-dock/current_theme/plug-ins/rendering/rendering.conf)
145
146message :  (cairo-dock-renderer-manager.c:cairo_dock_register_renderer:57) 
147 cairo_dock_register_renderer (Caroussel)
148message :  (cairo-dock-renderer-manager.c:cairo_dock_register_renderer:57) 
149 cairo_dock_register_renderer (3D plane)
150message :  (cairo-dock-renderer-manager.c:cairo_dock_register_renderer:57) 
151 cairo_dock_register_renderer (Parabolic)
152message :  (cairo-dock-renderer-manager.c:cairo_dock_register_renderer:57) 
153 cairo_dock_register_renderer (Rainbow)
154message :  (cairo-dock-renderer-manager.c:cairo_dock_register_renderer:57) 
155 cairo_dock_register_renderer (Slide)
156message :  (cairo-dock-renderer-manager.c:cairo_dock_register_renderer:57) 
157 cairo_dock_register_renderer (SimpleSlide)
158message :  (cairo-dock-renderer-manager.c:cairo_dock_register_renderer:57) 
159 cairo_dock_register_renderer (Curve)
160message :  (cairo-dock-renderer-manager.c:cairo_dock_set_renderer:159) 
161 cairo_dock_set_renderer ((null))
162message :  (cairo-dock-modules.c:cairo_dock_activate_module:453) 
163 cairo_dock_activate_module (switcher)
164cairo_dock_instanciate_module (/users/m340689/.cairo-dock/current_theme/plug-ins/switcher/switcher.conf)
165 ce module est une applet
166message :  (cairo-dock-applet-factory.c:cairo_dock_create_applet_surface:31) 
167 cairo_dock_create_applet_surface (32,00x32,00 x 2,00 / 1)
168message :  (cairo-dock-applet-factory.c:cairo_dock_create_applet_surface:40) 
169 -> 48,00x48,00 x 2,00
170cairo_dock_read_module_config (40f26450)
171myConfig.bCompactView:0
172message :  (applet-init.c:init:83) 
173 init (/users/m340689/.cairo-dock/current_theme/plug-ins/switcher/switcher.conf)
174
175message :  (cairo-dock-renderer-manager.c:cairo_dock_set_renderer:159) 
176 cairo_dock_set_renderer ((null))
177message :  (cairo-dock-applications-manager.c:cairo_dock_update_applis_list:1203) 
178 cette fenetre (88080409) de la pile n'est pas dans la liste
179cd_switcher_draw_main_icon (0)
180message :  (cairo-dock-load.c:cairo_dock_load_desktop_background_surface:856) 
181 c'est un fond d'ecran de taille 1024x742
182message :  (cairo-dock-dock-factory.c:cairo_dock_reference_dock:476) 
183 position : 1/1
184message :  (cairo-dock-renderer-manager.c:cairo_dock_set_renderer:159) 
185 cairo_dock_set_renderer ((null))
186message :  (cairo-dock-load.c:cairo_dock_reload_buffers_in_dock:502) 
187 cairo_dock_reload_buffers_in_dock ((null), 1)
188message :  (cairo-dock-renderer-manager.c:cairo_dock_set_renderer:159) 
189 cairo_dock_set_renderer (SimpleSlide)
190cd_switcher_draw_main_icon (0)
191 (0,00; 0,00) 38,40x38,40
192 (0,00; 0,00) 38,40x38,40
193 (0,00; 0,00) 38,40x38,40
194 (0,00; 0,00) 38,40x38,40
195cd_switcher_draw_main_icon (0)
196message :  (cairo-dock-renderer-manager.c:cairo_dock_set_renderer:159) 
197 cairo_dock_set_renderer ((null))
198message :  (cairo-dock-renderer-manager.c:cairo_dock_set_renderer:159) 
199 cairo_dock_set_renderer (SimpleSlide)
200message :  (cairo-dock-dock-manager.c:cairo_dock_search_max_decorations_size:193) 
201 decorations max : 761x52
202message :  (cairo-dock-keyfile-utilities.c:cairo_dock_write_keys_to_file:18) 
203 cairo_dock_write_keys_to_file (/users/m340689/.cairo-dock/current_theme/cairo-dock_easy.conf)
204message :  (cairo-dock-keyfile-utilities.c:cairo_dock_write_keys_to_file:18) 
205 cairo_dock_write_keys_to_file (/users/m340689/.cairo-dock/current_theme/cairo-dock_easy.conf)
206cd_switcher_draw_main_icon (0)
207message :  (cairo-dock-dock-manager.c:cairo_dock_stop_quick_hide:494) 
208
209message :  (cairo-dock-dock-manager.c:cairo_dock_stop_quick_hide:494) 
210
211cd_switcher_draw_main_icon (0)
212message :  (cairo-dock-dock-manager.c:cairo_dock_stop_quick_hide:494) 
213
214message :  (cairo-dock-dock-manager.c:cairo_dock_hide_child_docks:250) 
215 on est dans le sous-dock, donc on ne le cache pas
216message :  (cairo-dock-dock-manager.c:cairo_dock_hide_child_docks:250) 
217 on est dans le sous-dock, donc on ne le cache pas
2180
=== modified file 'dustbin/data/dustbin.conf.in'
--- dustbin/data/dustbin.conf.in 2011-08-09 18:08:08 +0000
+++ dustbin/data/dustbin.conf.in 2011-10-08 22:23:24 +0000
@@ -57,7 +57,7 @@
57#b Is detached from the dock57#b Is detached from the dock
58initially detached=false58initially detached=false
59#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:59#l[Normal;Keep above;Keep below;Keep on widget layer;Reserve space] Visibility:
60#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=utility)}60#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=Utility)}
61accessibility=061accessibility=0
62#b Should be visible on all desktops?62#b Should be visible on all desktops?
63sticky=true63sticky=true
6464
=== modified file 'dustbin/data/themes/CMakeLists.txt'
--- dustbin/data/themes/CMakeLists.txt 2010-08-10 00:05:57 +0000
+++ dustbin/data/themes/CMakeLists.txt 2011-10-08 22:23:24 +0000
@@ -1,12 +1,1 @@
1add_subdirectory(default)1add_subdirectory(default)
2
3
4########### install files ###############
5
6
7
8
9#original Makefile.am contents follow:
10
11#SUBDIRS = \
12# default
132
=== modified file 'dustbin/src/applet-init.c'
--- dustbin/src/applet-init.c 2010-09-07 02:38:17 +0000
+++ dustbin/src/applet-init.c 2011-10-08 22:23:24 +0000
@@ -37,6 +37,7 @@
3737
38static void _get_theme (void)38static void _get_theme (void)
39{39{
40 // get the user images first, as they overwrite the theme.
40 if (myConfig.cEmptyUserImage != NULL)41 if (myConfig.cEmptyUserImage != NULL)
41 {42 {
42 gchar *cPath = cairo_dock_search_icon_s_path (myConfig.cEmptyUserImage);43 gchar *cPath = cairo_dock_search_icon_s_path (myConfig.cEmptyUserImage);
@@ -57,6 +58,7 @@
57 }58 }
58 g_free (cPath);59 g_free (cPath);
59 }60 }
61 // if a theme is defined, and user images are not defined, use the theme.
60 if (myConfig.cThemePath != NULL)62 if (myConfig.cThemePath != NULL)
61 {63 {
62 if (myConfig.cEmptyUserImage == NULL)64 if (myConfig.cEmptyUserImage == NULL)
@@ -66,11 +68,11 @@
66 {68 {
67 g_free (myConfig.cEmptyUserImage);69 g_free (myConfig.cEmptyUserImage);
68 myConfig.cEmptyUserImage = g_strdup_printf ("%s/%s", myConfig.cThemePath, "trashcan_empty.png");70 myConfig.cEmptyUserImage = g_strdup_printf ("%s/%s", myConfig.cThemePath, "trashcan_empty.png");
69 if (! g_file_test (myConfig.cEmptyUserImage, G_FILE_TEST_EXISTS))71 if (! g_file_test (myConfig.cEmptyUserImage, G_FILE_TEST_EXISTS)) // no svg nor png, use the default theme.
70 {72 {
71 g_free (myConfig.cEmptyUserImage);73 g_free (myConfig.cEmptyUserImage);
72 myConfig.cEmptyUserImage = NULL;74 myConfig.cEmptyUserImage = g_strdup (MY_APPLET_SHARE_DATA_DIR"/themes/default/trashcan_empty.svg");
73 cd_warning ("dustbin : couldn't find an image for empty dustbin, check the existence of the files in %s", myConfig.cThemePath);75 cd_warning ("using the default theme for Dustbin, as neither the user image (%s) nor the theme (%s) are valid", myConfig.cEmptyUserImage, myConfig.cThemePath);
74 }76 }
75 }77 }
76 }78 }
@@ -84,8 +86,8 @@
84 if (! g_file_test (myConfig.cFullUserImage, G_FILE_TEST_EXISTS))86 if (! g_file_test (myConfig.cFullUserImage, G_FILE_TEST_EXISTS))
85 {87 {
86 g_free (myConfig.cFullUserImage);88 g_free (myConfig.cFullUserImage);
87 myConfig.cFullUserImage = NULL;89 myConfig.cFullUserImage = g_strdup (MY_APPLET_SHARE_DATA_DIR"/themes/default/trashcan_full.svg");
88 cd_warning ("dustbin : couldn't find an image for full dustbin, check the existence of the files in %s", myConfig.cThemePath);90 cd_warning ("using the default theme for Dustbin, as neither the user image (%s) nor the theme (%s) are valid", myConfig.cFullUserImage, myConfig.cThemePath);
89 }91 }
90 }92 }
91 }93 }
9294
=== modified file 'dustbin/src/applet-trashes-manager.c'
--- dustbin/src/applet-trashes-manager.c 2011-04-20 20:46:51 +0000
+++ dustbin/src/applet-trashes-manager.c 2011-10-08 22:23:24 +0000
@@ -65,11 +65,11 @@
65 65
66 if (myConfig.iQuickInfoType == CD_DUSTBIN_INFO_NB_TRASHES)66 if (myConfig.iQuickInfoType == CD_DUSTBIN_INFO_NB_TRASHES)
67 {67 {
68 CD_APPLET_SET_QUICK_INFO_ON_MY_ICON_PRINTF ("%d%s", myData.iMeasure, (myDesklet ? D_(" trashe(s)") : ""));68 CD_APPLET_SET_QUICK_INFO_ON_MY_ICON_PRINTF ("%ld%s", myData.iMeasure, (myDesklet ? D_(" trashe(s)") : ""));
69 }69 }
70 else if (myConfig.iQuickInfoType == CD_DUSTBIN_INFO_NB_FILES)70 else if (myConfig.iQuickInfoType == CD_DUSTBIN_INFO_NB_FILES)
71 {71 {
72 CD_APPLET_SET_QUICK_INFO_ON_MY_ICON_PRINTF ("%d%s", myData.iMeasure, (myDesklet ? D_(" file(s)") : ""));72 CD_APPLET_SET_QUICK_INFO_ON_MY_ICON_PRINTF ("%ld%s", myData.iMeasure, (myDesklet ? D_(" file(s)") : ""));
73 }73 }
74 else if (myConfig.iQuickInfoType == CD_DUSTBIN_INFO_WEIGHT)74 else if (myConfig.iQuickInfoType == CD_DUSTBIN_INFO_WEIGHT)
75 {75 {
7676
=== modified file 'gvfs-integration/cairo-dock-gio-vfs.c'
--- gvfs-integration/cairo-dock-gio-vfs.c 2011-08-09 18:08:08 +0000
+++ gvfs-integration/cairo-dock-gio-vfs.c 2011-10-08 22:23:24 +0000
@@ -91,7 +91,14 @@
91 for (i = 0; cFileNames[i] != NULL && cIconPath == NULL; i ++)91 for (i = 0; cFileNames[i] != NULL && cIconPath == NULL; i ++)
92 {92 {
93 //g_print (" une icone possible est : %s\n", cFileNames[i]);93 //g_print (" une icone possible est : %s\n", cFileNames[i]);
94 cIconPath = cairo_dock_search_icon_s_path (cFileNames[i]);94
95 gchar *path = cairo_dock_search_icon_s_path (cFileNames[i]);
96 if (path)
97 {
98 g_free (path);
99 cIconPath = g_strdup (cFileNames[i]);
100 }
101
95 //g_print (" chemin trouve : %s\n", cIconPath);102 //g_print (" chemin trouve : %s\n", cIconPath);
96 }103 }
97 }104 }
@@ -319,13 +326,26 @@
319 cd_message ("cVolumeName : %s", cVolumeName);326 cd_message ("cVolumeName : %s", cVolumeName);
320 327
321 GMount *pMount = NULL;328 GMount *pMount = NULL;
322 _cd_find_mount_from_volume_name (cVolumeName, &pMount, cURI, cIconName);329 gchar *uri=NULL, *iconname=NULL;
330 _cd_find_mount_from_volume_name (cVolumeName, &pMount, &uri, &iconname);
323 g_return_if_fail (pMount != NULL);331 g_return_if_fail (pMount != NULL);
324 332
325 *cName = g_strdup (cVolumeName);333 if (cURI)
326 *bIsDirectory = TRUE;334 *cURI = uri;
327 *iVolumeID = 1;335 else
328 *fOrder = 0;336 g_free (uri);
337 if (cIconName)
338 *cIconName = iconname;
339 else
340 g_free (iconname);
341 if (cName)
342 *cName = g_strdup (cVolumeName);
343 if (bIsDirectory)
344 *bIsDirectory = TRUE;
345 if (iVolumeID)
346 *iVolumeID = 1;
347 if (fOrder)
348 *fOrder = 0;
329 //g_object_unref (pMount);349 //g_object_unref (pMount);
330 350
331 g_free (cValidUri);351 g_free (cValidUri);
@@ -367,7 +387,6 @@
367 G_FILE_QUERY_INFO_NONE, /// G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS387 G_FILE_QUERY_INFO_NONE, /// G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS
368 NULL,388 NULL,
369 &erreur);389 &erreur);
370 //g_object_unref (pFile);
371 if (erreur != NULL) // peut arriver si l'emplacement n'est pas monte.390 if (erreur != NULL) // peut arriver si l'emplacement n'est pas monte.
372 {391 {
373 cd_debug ("gvfs-integration : %s", erreur->message); // inutile d'en faire un warning.392 cd_debug ("gvfs-integration : %s", erreur->message); // inutile d'en faire un warning.
@@ -380,135 +399,155 @@
380 const gchar *cFileName = g_file_info_get_name (pFileInfo);399 const gchar *cFileName = g_file_info_get_name (pFileInfo);
381 const gchar *cMimeType = g_file_info_get_content_type (pFileInfo);400 const gchar *cMimeType = g_file_info_get_content_type (pFileInfo);
382 GFileType iFileType = g_file_info_get_file_type (pFileInfo);401 GFileType iFileType = g_file_info_get_file_type (pFileInfo);
383
384 if (iSortType == CAIRO_DOCK_FM_SORT_BY_DATE)
385 {
386 GTimeVal t;
387 g_file_info_get_modification_time (pFileInfo, &t);
388 *fOrder = t.tv_sec;
389 }
390 else if (iSortType == CAIRO_DOCK_FM_SORT_BY_ACCESS)
391 *fOrder = g_file_info_get_attribute_uint64 (pFileInfo, G_FILE_ATTRIBUTE_TIME_ACCESS);
392 else if (iSortType == CAIRO_DOCK_FM_SORT_BY_SIZE)
393 *fOrder = g_file_info_get_size (pFileInfo);
394 else if (iSortType == CAIRO_DOCK_FM_SORT_BY_TYPE)
395 *fOrder = (cMimeType != NULL ? *((int *) cMimeType) : 0);
396 else
397 *fOrder = 0;
398
399 *bIsDirectory = (iFileType == G_FILE_TYPE_DIRECTORY);
400 cd_message (" => '%s' (mime:%s ; bIsDirectory:%d)", cFileName, cMimeType, *bIsDirectory);
401
402 const gchar *cTargetURI = g_file_info_get_attribute_string (pFileInfo, G_FILE_ATTRIBUTE_STANDARD_TARGET_URI);402 const gchar *cTargetURI = g_file_info_get_attribute_string (pFileInfo, G_FILE_ATTRIBUTE_STANDARD_TARGET_URI);
403 403
404 // if it's a mount point, find a readable name.404 // find the order of the file
405 if (fOrder)
406 {
407 if (iSortType == CAIRO_DOCK_FM_SORT_BY_DATE)
408 {
409 GTimeVal t;
410 g_file_info_get_modification_time (pFileInfo, &t);
411 *fOrder = t.tv_sec;
412 }
413 else if (iSortType == CAIRO_DOCK_FM_SORT_BY_ACCESS)
414 *fOrder = g_file_info_get_attribute_uint64 (pFileInfo, G_FILE_ATTRIBUTE_TIME_ACCESS);
415 else if (iSortType == CAIRO_DOCK_FM_SORT_BY_SIZE)
416 *fOrder = g_file_info_get_size (pFileInfo);
417 else if (iSortType == CAIRO_DOCK_FM_SORT_BY_TYPE)
418 *fOrder = (cMimeType != NULL ? *((int *) cMimeType) : 0);
419 else
420 *fOrder = 0;
421 }
422
423 if (bIsDirectory)
424 *bIsDirectory = (iFileType == G_FILE_TYPE_DIRECTORY);
425
426
427 // find a readable name if it's a mount point.
405 if (iFileType == G_FILE_TYPE_MOUNTABLE)428 if (iFileType == G_FILE_TYPE_MOUNTABLE)
406 {429 {
407 *cName = NULL;430 if (iVolumeID)
408 *iVolumeID = 1;431 *iVolumeID = 1;
409 432
410 cd_message (" cTargetURI:%s", cTargetURI);
411 GMount *pMount = NULL;
412 if (cTargetURI != NULL)
413 {
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches