~helene-verhaeghe27/cairo-dock-core/bugfix

« back to all changes in this revision

Viewing changes to src/cairo-dock-load.c

  • Committer: fabounet
  • Date: 2010-02-28 23:40:53 UTC
  • Revision ID: fabounet03@gmail.com-20100228234053-p3rj2yef6chq7mob
switch from pbuffer to fbo + added an option for unclickable desklets

Show diffs side-by-side

added added

removed removed

Lines of Context:
881
881
        if (iSize == 0)
882
882
                iSize = 48;
883
883
        iSize *= fMaxScale;
 
884
        
 
885
        gchar *cUserPath = cairo_dock_generate_file_path ("box-front.png");
 
886
        if (! g_file_test (cUserPath, G_FILE_TEST_EXISTS))
 
887
        {
 
888
                g_free (cUserPath);
 
889
                cUserPath = NULL;
 
890
        }
884
891
        cairo_dock_load_image_buffer (&g_pBoxAboveBuffer,
885
 
                CAIRO_DOCK_SHARE_DATA_DIR"/box-front.png",
 
892
                cUserPath ? cUserPath : CAIRO_DOCK_SHARE_DATA_DIR"/box-front.png",
886
893
                iSize,
887
894
                iSize,
888
895
                CAIRO_DOCK_FILL_SPACE);
 
896
        
 
897
        cUserPath = cairo_dock_generate_file_path ("box-front.png");
 
898
        if (! g_file_test (cUserPath, G_FILE_TEST_EXISTS))
 
899
        {
 
900
                g_free (cUserPath);
 
901
                cUserPath = NULL;
 
902
        }
889
903
        cairo_dock_load_image_buffer (&g_pBoxBelowBuffer,
890
904
                CAIRO_DOCK_SHARE_DATA_DIR"/box-back.png",
891
905
                iSize,
1177
1191
                s_pDesktopBg->iTexture = 0;
1178
1192
        }
1179
1193
        cairo_dock_destroy_icon_pbuffer ();
 
1194
        cairo_dock_destroy_icon_fbo ();
1180
1195
        cairo_dock_unload_default_data_renderer_font ();
1181
1196
        cairo_dock_unload_flying_container_textures ();
1182
1197
        _destroy_source_context ();