~cairo-dock-team/ubuntu/quantal/cairo-dock-plug-ins/3.0.2

« back to all changes in this revision

Viewing changes to slider/src/applet-slider.c

Tags: upstream-2.2.0~0beta4
ImportĀ upstreamĀ versionĀ 2.2.0~0beta4

Show diffs side-by-side

added added

removed removed

Lines of Context:
183
183
                iLoadingModifier |= CAIRO_DOCK_KEEP_RATIO;
184
184
        
185
185
        //\_______________ On cree la surface cairo.
186
 
        cairo_t *pCairoContext = cairo_dock_create_context_from_container (myContainer);
187
186
        myData.pCairoSurface = cairo_dock_create_surface_from_image (cImagePath,
188
 
                pCairoContext,  // myDrawContext
189
187
                1.,
190
188
                myData.iSurfaceWidth, myData.iSurfaceHeight,
191
189
                iLoadingModifier,
192
190
                &fImgW, &fImgH,
193
191
                NULL, NULL);
194
 
        cairo_destroy (pCairoContext);
195
192
        
196
193
        //\_______________ On garde l'aire de la surface/texture.
197
194
        fImgX = (myData.iSurfaceWidth - fImgW) / 2;