~noskcaj/ubuntu/utopic/cairo-dock-plug-ins/upower

« back to all changes in this revision

Viewing changes to dock-rendering/src/rendering-panel.c

  • Committer: Matthieu Baerts
  • Date: 2014-02-19 23:22:46 UTC
  • mfrom: (1.1.36)
  • Revision ID: matttbe@gmail.com-20140219232246-iopf2zg7s6jby9tt
Tags: 3.3.99.beta1.1~20140219~bzr3061-0ubuntu1
* New upstream snapshot.
* Short Upstream ChangeLog:
  - All: updated due to recent API changes and changes in the global style
  - GMenu:
    - Do not create empty menus
    - Show the dialogue to open a new after after the end of the installation
    - Added an option to not show this dialogue
  - Gnome: support Cinnamon logout
  - Logout: display a message to reboot the system after the end of the update
  - Shortcut: improve the support of bookmarks
  - Status-Notifier: support scroll events
  - Terminal: open terminal on middle click
  - Some bugs have been fixed (LP: #1253654), other tweaks
* debian/control:
  - Bumped Cairo-Dock (core) versions
  - Bumped Standard Version (no change needed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
        pDock->iMaxDockWidth = pDock->fFlatDockWidth = pDock->iMinDockWidth = MAX (W, x);  // if > W, we'll come back here with a smaller ratio.
117
117
        //g_print ("iMaxDockWidth : %d (%.2f)\n", pDock->iMaxDockWidth, pDock->container.fRatio);
118
118
        
119
 
        pDock->iMaxDockHeight = myDocksParam.iDockLineWidth + myDocksParam.iFrameMargin + hicon * pDock->container.fRatio + myDocksParam.iFrameMargin + myDocksParam.iDockLineWidth + (pDock->container.bIsHorizontal || !myIconsParam.bTextAlwaysHorizontal ? myIconsParam.iLabelSize : 0);
 
119
        pDock->iMaxDockHeight = myDocksParam.iDockLineWidth + myDocksParam.iFrameMargin + hicon * pDock->container.fRatio + myDocksParam.iFrameMargin + myDocksParam.iDockLineWidth + (pDock->container.bIsHorizontal ? myIconsParam.iLabelSize : 0);
120
120
        
121
121
        pDock->iMaxDockHeight = MAX (pDock->iMaxDockHeight, pDock->iMaxIconHeight * (1 + myIconsParam.fAmplitude));  // au moins la taille du FBO.
122
122
        //g_print ("panel view: pDock->iMaxIconHeight = %d\n", pDock->iMaxIconHeight);
126
126
        
127
127
        pDock->iActiveWidth = pDock->iMaxDockWidth;
128
128
        pDock->iActiveHeight = pDock->iMinDockHeight;
129
 
        if (! pDock->container.bIsHorizontal && myIconsParam.bTextAlwaysHorizontal)
 
129
        if (! pDock->container.bIsHorizontal)
130
130
                pDock->iMaxDockHeight += 8*myIconsParam.iLabelSize;  // vertical dock, add some padding to draw the labels
131
131
        
132
132
        CDPanelData *pData = pDock->pRendererData;
847
847
                                        rect.y = 0;
848
848
                                        rect.width = xi;  // to first icon
849
849
                                        rect.height = h;
850
 
                                        g_print ("rect %d; %d (%s)\n", (int)rect.x, (int)rect.width, pIcon->cName);
 
850
                                        cd_debug ("rect %d; %d (%s)", (int)rect.x, (int)rect.width, pIcon->cName);
851
851
                                }
852
852
                                else
853
853
                                {