[libcroco-list] Fix : sx_box_view_new_from_xml_css_paths



Hi

This API function didn't load the default sewfox stylesheet, causing
problems when applying a user stylesheet

Here is the fix

Stephane.
-- 
    Stéphane Bonhomme - Formations, Conseil et Réalisations
 Ingénierie Documentaire - Technologies Web - Logiciels Libres
   s bonhomme wanadoo fr - http://perso.wanadoo.fr/s.bonhomme
              04 76 17 09 40 / 06 88 57 27 08

? Makefile
? Makefile.in
? aclocal.m4
? autom4te.cache
? config.h
? config.h.in
? config.log
? config.status
? configure
? diff.txt
? libtool
? sewfox-config
? sewfox.pc
? stamp-h
? stamp-h.in
? update-log
? src/Makefile
? src/Makefile.in
? src/orig.Makefile.am
? stylesheets/Makefile
? stylesheets/Makefile.in
Index: src/sx-box-view.c
===================================================================
RCS file: /cvs/gnome/sewfox/src/sx-box-view.c,v
retrieving revision 1.11
diff -r1.11 sx-box-view.c
644a645
>         CRStyleSheet *default_sheet = NULL ;
651a653
>         status = sx_box_view_get_default_stylesheet (&default_sheet) ;
658,661d659
<         else
<         {
<                 status = sx_box_view_get_default_stylesheet (&sheet) ;
<         }
671c669
<         cascade = cr_cascade_new (NULL, NULL, sheet) ;
---
>         cascade = cr_cascade_new (NULL, default_sheet, sheet) ;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]