~ubuntu-branches/ubuntu/saucy/cairo-dock-plug-ins/saucy-proposed

« back to all changes in this revision

Viewing changes to clock/src/applet-config.c

  • Committer: Andrew Starr-Bochicchio
  • Date: 2012-06-23 21:32:42 UTC
  • mfrom: (29.1.1 cairo-dock-plug-ins)
  • Revision ID: a.starr.b@gmail.com-20120623213242-ury15zvhxfpufctb
* New upstream bug-fix release. (LP: #1014804)
* Upstream ChangeLog (3.0.0 -> 3.0.1):
 - Gnome-integration: fixed the time&date command
 - KDE integration: fixed the time&date command
 - Updated previews of dustbin and logout with the new version
 - Updated the version of applets that can be always visible
    (for the new parameters)
 - Clock: numeric view: increased the size of the rectangle if an
    outline is used and modified the default colour
 - Clock: Now with the possibility to have an outline with the digital view
    to see when we don't use any background
 - Used the core option to not force the display of icons in menus
 - Minor fixes in Sound Control's .conf file
 - MusicPlayer: mpris2: metadata: trackid attribute should be of D-Bus
    type 'o'
 - Switcher: fixed a possible crash (division by 0) if the X manager
    couldn't get info from X + removed bMenuVisible
 - Clock: analogic mode: fixed a bug where the date was not displayed
    correctly (with opengl)
 - Clock: numeric mode: set a minimum size for the text: we keep the
    ratio until 12px (under 12px, it's hard to read)
 - Logout: added a fallback method to get the users list if the accounts
    daemon service is not running
 - CMakeLists.txt: fixed a CMake warning (or error?)
* Upstream ChangeLog (3.0.1 -> 3.0.2):
 - AlsaMixer: Fix: double-clicking did nothing if we didn't open the menu
    of the applet
 - DND2Share: Pastebin: Their public API is no longer available -> ported
    to the new API
 - GMenu: Fixed a bug that made sub-menus be too small,
    and therefore have to be scrolled + code cleaning
 - Logout: When the menu is reversed (top dock), select the last item so
    that it's the same as the normal menu (ie, the 'shutdown' item)
 - MusicPlayer: Prevented a warning message: when changing song, we don't
    receive this value: Position (no need to display a warning each time)
 - MusicPlayer: Allow recently played files in the menu (Recent-Files)
 - MusicPlayer: Fixed a bug that prevented the player from being launched
    the 2nd time in some cases
 - MusicPlayer: Added raise and quit methods in the menu when the player is
    in the systray (without that it's hard to display the window
 - MusicPlayer: Used toggle buttons for Shuffle and Repeat properties
 - Recent-Events: If the file doesn't exist, don't display it in the
    'Recent Files' menu
 - Recent-Events: Prevent doubles in the menu list
 - Po: Updated translations (added Croatian)
 - Shortcuts: Fixed a small bug with bookmarks (extra new lines were
    disrupting Thunar)
 - Status-Notifier: Added the marshaller for the XAyatanaNewLabel signal
 - Systray (old): Force the icons size to 24px, to avoid buggy programs to
    display their icon with a wrong size
 - Third-party applets: Reposition their right-click menu, so that it's the
    same as a normal menu (on top of the icon and no scroll needed)
* debian/control:
 - Bumped libgldi-dev version to avoid compilation error
    (cmake check if libgldi has the same version than this package)

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
                myConfig.bOldStyle = (iStyle == 0);
67
67
        }
68
68
        
69
 
        double couleur[4] = {0., 0., 0.5, 1.};
70
69
        if (myConfig.bOldStyle)
71
70
        {
 
71
                double colour[4] = {0., 0., 0., 1.};
72
72
                myConfig.cThemePath = CD_CONFIG_GET_THEME_PATH ("Configuration", "theme", "themes", "glassy");
73
 
                CD_CONFIG_GET_COLOR_WITH_DEFAULT ("Configuration", "date color", myConfig.fDateColor, couleur);
 
73
                CD_CONFIG_GET_COLOR_WITH_DEFAULT ("Configuration", "date color", myConfig.fDateColor, colour);
74
74
        }
75
75
        else
76
76
        {
77
 
                CD_CONFIG_GET_COLOR_WITH_DEFAULT ("Configuration", "text color", myConfig.fTextColor, couleur);
 
77
                double colour[4] = {0.85, 0.85, 0.85, 1.};
 
78
                CD_CONFIG_GET_COLOR_WITH_DEFAULT ("Configuration", "text color", myConfig.fTextColor, colour);
 
79
                CD_CONFIG_GET_COLOR_WITH_DEFAULT ("Configuration", "outline color", myConfig.fOutlineColor, colour);
 
80
                myConfig.iOutlineWidth = CD_CONFIG_GET_INTEGER ("Configuration", "outline width");
78
81
                
79
82
                gboolean bCustomFont = CD_CONFIG_GET_BOOLEAN_WITH_DEFAULT ("Configuration", "custom font", FALSE);  // false by default
80
83
                if (bCustomFont)