[Buoh-dev] Propiedades



El jue, 18-08-2005 a las 22:06 +0200, Pablo Arroyo escribi?:
> bueno, pues ahi va mi primer parche.
> 
> Espero que est? bien, al menos a mi me funciona al aplicarlo.

hay un peque?o problema general que se repite en todo el c?digo.
Language se escribe las dos con g, no la segunda con j

Te comento mas cosas abajo

> saludos.
> 
> 
> Index: ChangeLog
> ===================================================================
> RCS file: /cvsroot/buoh/buoh/ChangeLog,v
> retrieving revision 1.35
> diff -u -r1.35 ChangeLog
> --- ChangeLog   18 Aug 2005 18:37:13 -0000      1.35
> +++ ChangeLog   18 Aug 2005 19:55:23 -0000
> @@ -1,3 +1,12 @@
> +2005-08-18  Pablo Arroyo <zioma linups org>
> +
> +       * src/buoh-properties-dialog.c: Now it shows some properties
> of the
> +       comic (we must change the alignment of the labels).
> +       
> +       * data/comic.xml: Added the languaje label.
> +       
> +       * src/buoh-comic.c: Added the languaje atribute to the comic
> object.
> +
>  2005-08-18  Carlos Garcia Campos  <carlosgc gnome org>
>  
>         * src/buoh.c: We prefer g_free instead of xmlFree
> Index: data/comics.xml
> ===================================================================
> RCS file: /cvsroot/buoh/buoh/data/comics.xml,v
> retrieving revision 1.7
> diff -u -r1.7 comics.xml
> --- data/comics.xml     12 Jun 2005 22:29:41 -0000      1.7
> +++ data/comics.xml     18 Aug 2005 19:55:24 -0000
> @@ -3,6 +3,7 @@
>         class="simple"
>         title="Tutelandia en Espa??ol"
>         author="Tute"
> +       languaje="Spanish"
>         generic_uri="http://picayune.uclick.com/comics/sptut/%Y/sptut%
> y%m%d.gif">
>                 <restrict>7</restrict>
>  </comic>
> @@ -10,6 +11,7 @@
>         class="simple"
>         title="Pepe en Espa??ol"
>         author="Moco"
> +       languaje="Spanish"
>         generic_uri="http://picayune.uclick.com/comics/sppep/%Y/sppep%
> y%m%d.gif">
>                 <restrict>7</restrict>
>  </comic>
> @@ -17,6 +19,7 @@
>         class="simple"
>         title="Calvin y Hobbes en Espa??ol"
>         author="Bill Watterson"
> +       languaje="Spanish"
>         generic_uri="http://picayune.uclick.com/comics/spch/%Y/spch%y%
> m%d.gif">
>                 <restrict>7</restrict>
>  </comic>
> @@ -24,18 +27,21 @@
>         class="simple"
>         title="Gaturro en Espa??ol"
>         author="Nik"
> +       languaje="Spanish"
>         generic_uri="http://picayune.uclick.com/comics/spgat/%Y/spgat%
> y%m%d.gif">
>  </comic>
>  <comic id="cond"
>         class="simple"
>         title="Condorito en Espa??ol"
>         author="World Features, Inc."
> +       languaje="Spanish"
>         generic_uri="http://picayune.uclick.com/comics/cond/%Y/cond%y%
> m%d.gif">
>  </comic>
>  <comic id="spfba"
>         class="simple"
>         title="Fred Basset en Espa??ol"
>         author="Alex Graham"
> +       languaje="Spanish"
>         generic_uri="http://picayune.uclick.com/comics/spfba/%Y/spfba%
> y%m%d.gif">
>         <restrict>7</restrict>
>  </comic>
> @@ -43,6 +49,7 @@
>         class="simple"
>         title="James Bond en Espa??ol"
>         author="Ian Fleming"
> +       languaje="Spanish"
>         generic_uri="http://picayune.uclick.com/comics/spjb/%Y/spjb%y%
> m%d.gif">
>                 <restrict>7</restrict>
>  </comic>
> @@ -50,6 +57,7 @@
>         class="simple"
>         title="Cathy en Espa??ol"
>         author="Cathy Guisewite"
> +       languaje="Spanish"
>         generic_uri="http://picayune.uclick.com/comics/spca/%Y/spca%y%
> m%d.gif">
>                 <restrict>7</restrict> 
>  </comic>
> @@ -57,6 +65,7 @@
>         class="simple"
>         title="FoxTrot en Espa??ol"
>         author="Bill Amend"
> +       languaje="Spanish"
>         generic_uri="http://picayune.uclick.com/comics/spft/%Y/spft%y%
> m%d.gif">
>                 <restrict>7</restrict>
>  </comic>
> @@ -64,12 +73,14 @@
>         class="simple"
>         title="Pooch Caf?? en Espa??ol"
>         author="Paul Gilligan"
> +       languaje="Spanish"
>         generic_uri="http://picayune.uclick.com/comics/sppoc/%Y/sppoc%
> y%m%d.gif">
>  </comic>
>  <comic id="spzi"
>         class="simple"
>         title="Ziggy en Espa??ol"
>         author="Tom Wilson &amp; Tom II"
> +       languaje="Spanish"
>         generic_uri="http://picayune.uclick.com/comics/spzi/%Y/spzi%y%
> m%d.gif">
>                 <restrict>7</restrict>
>  </comic>
> @@ -77,12 +88,14 @@
>         class="simple"
>         title="Baldo en Espa??ol"
>         author="Hector D. Cantu &amp; Carlos Castellanos"
> +       languaje="Spanish"
>         generic_uri="http://picayune.uclick.com/comics/be/%Y/be%y%m%
> d.gif">
>  </comic>
>  <comic id="spob"
>         class="simple"
>         title="Overboard en Espa??ol"
>         author="Chip Dunham"
> +       languaje="Spanish"
>         generic_uri="http://picayune.uclick.com/comics/spob/%Y/spob%y%
> m%d.gif">
>                 <restrict>7</restrict>
>  </comic>
> @@ -90,6 +103,7 @@
>         class="simple"
>         title="Garfield en Espa??ol"
>         author="Jim Davis"
> +       languaje="Spanish"
>         generic_uri="http://picayune.uclick.com/comics/gh/%Y/gh%y%m%
> d.gif">
>                 <restrict>7</restrict>
>  </comic>
> @@ -97,6 +111,7 @@
>         class="simple"
>         title="Mutt &amp; Jeff en Espa??ol"
>         author="Pierre S. De Beaumont"
> +       languaje="Spanish"
>         generic_uri="http://picayune.uclick.com/comics/spmut/%Y/spmut%
> y%m%d.gif">
>                 <restrict>7</restrict>
>  </comic>
> @@ -104,6 +119,7 @@
>         class="simple"
>         title="9 to 5"
>         author="Harley Schwadron"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/tmntf/%Y/tmntf%
> y%m%d.gif">
>                 <restrict>7</restrict>
>  </comic>
> @@ -111,36 +127,42 @@
>         class="simple"
>         title="Adam Home"
>         author="Brian Basset"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/ad/%Y/ad%y%m%
> d.gif">
>  </comic>
>  <comic id="cragn"
>         class="simple"
>         title="Agnes"
>         author="Tony Cochran"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/cragn/%Y/cragn%
> y%m%d.gif">
>  </comic>
>  <comic id="crcap"
>         class="simple"
>         title="Andy Capp"
>         author="Reg Smythe"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/crcap/%Y/crcap%
> y%m%d.gif">
>  </comic>
>  <comic id="tmani"
>         class="simple"
>         title="Animal Crackers"
>         author="Fred Wagner"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/tmani/%Y/tmani%
> y%m%d.gif">
>  </comic>
>  <comic id="tmann"
>         class="simple"
>         title="Annie"
>         author="Jay Maeder &amp; Ted Slampyak"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/tmann/%Y/tmann%
> y%m%d.gif">
>  </comic>
>  <comic id="crask"
>         class="simple"
>         title="Ask Shagg"
>         author="Peter Guren"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/crask/%Y/crask%
> y%m%d.gif">
>                 <restrict>1</restrict>
>                 <restrict>2</restrict>
> @@ -153,48 +175,56 @@
>         class="simple"
>         title="Baldo"
>         author="Hector D. Cantu &amp; Carlos Castellanos"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/ba/%Y/ba%y%m%
> d.gif">
>  </comic>
>  <comic id="crbal"
>         class="simple"
>         title="Ballard Street"
>         author="Jerry Van Amerongen"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/crbal/%Y/crbal%
> y%m%d.gif">
>  </comic>
>  <comic id="crbc"
>         class="simple"
>         title="B.C."
>         author="Johnny Hart"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/crbc/%Y/crbc%y%
> m%d.gif">
>  </comic>
>  <comic id="bt"
>         class="simple"
>         title="Big Top"
>         author="Rob Harrell"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/bt/%Y/bt%y%m%
> d.gif">
>  </comic>
>  <comic id="bob"
>         class="simple"
>         title="Bob the Squirrel"
>         author="Frank Page"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/bob/%Y/bob%y%m%
> d.gif">
>  </comic>
>  <comic id="bon"
>         class="simple"
>         title="Bo Nanas"
>         author="John Kovaleski"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/bon/%Y/bon%y%m%
> d.gif">
>  </comic>
>  <comic id="bo"
>         class="simple"
>         title="The Boondocks"
>         author="Aaron McGruder"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/bo/%Y/bo%y%m%
> d.gif">
>  </comic>
>  <comic id="bol"
>         class="simple"
>         title="Born Lucky"
>         author="Bruce Plante"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/bol/%Y/bol%y%m%
> d.gif">
>                 <restrict>1</restrict>
>                 <restrict>2</restrict>
> @@ -207,6 +237,7 @@
>         class="simple"
>         title="Bottom Liners"
>         author="Eric &amp; Bill Teitelbaum"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/tmbot/%Y/tmbot%
> y%m%d.gif">
>                 <restrict>7</restrict>
>  </comic>
> @@ -214,48 +245,56 @@
>         class="simple"
>         title="Bound and Gagged"
>         author="Dana Summers"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/tmbou/%Y/tmbou%
> y%m%d.gif">
>  </comic>
>  <comic id="tmbre"
>         class="simple"
>         title="Brenda Starr"
>         author="June Brigman &amp; Mary Schmich"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/tmbre/%Y/tmbre%
> y%m%d.gif">
>  </comic>
>  <comic id="tmbro"
>         class="simple"
>         title="Broom Hilda"
>         author="Russell Myers"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/tmbro/%Y/tmbro%
> y%m%d.gif">
>  </comic>
>  <comic id="tmrkt"
>         class="simple"
>         title="Brewster Rockit: Space Guy"
>         author="Tim Rickard"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/tmrkt/%Y/tmrkt%
> y%m%d.gif">
>  </comic>
>  <comic id="cand"
>         class="simple"
>         title="Candorville"
>         author="Darrin Bell"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/cand/%Y/cand%y%
> m%d.gif">
>  </comic>
>  <comic id="ca"
>         class="simple"
>         title="Cathy"
>         author="Cathy Guisewite"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/ca/%Y/ca%y%m%
> d.gif">
>  </comic>
>  <comic id="tmcat"
>         class="simple"
>         title="Cats With Hands"
>         author="Joe Martin"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/tmcat/%Y/tmcat%
> y%m%d.gif">
>  </comic>
>  <comic id="crceo"
>         class="simple"
>         title="CEO Dad"
>         author="Tom Stern &amp; Phyllis Hofberg Bruskin"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/crceo/%Y/crceo%
> y%m%d.gif">
>                 <restrict>7</restrict>
>  </comic>
> @@ -263,42 +302,49 @@
>         class="simple"
>         title="Cornered"
>         author="Mike Baldwin"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/co/%Y/co%y%m%
> d.gif">
>  </comic>
>  <comic id="tmcom"
>         class="simple"
>         title="Compu-toon"
>         author="Charles Boyce"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/tmcom/%Y/tmcom%
> y%m%d.gif">
>  </comic>
>  <comic id="cl"
>         class="simple"
>         title="Close to Home"
>         author="John McPherson"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/cl/%Y/cl%y%m%
> d.gif">
>  </comic>
>  <comic id="cle"
>         class="simple"
>         title="Cleats"
>         author="Bill Hinds"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/cle/%Y/cle%y%m%
> d.gif">
>  </comic>
>  <comic id="cbw"
>         class="simple"
>         title="Clear Blue Water"
>         author="Karen Montague-Reyes"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/cbw/%Y/cbw%y%m%
> d.gif">
>  </comic>
>  <comic id="db"
>         class="simple"
>         title="Doonesbury"
>         author="Garry Trudeau"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/db/%Y/db%y%m%
> d.gif">
>  </comic>
>  <comic id="tmdoo"
>         class="simple"
>         title="Doodles"
>         author="Steve Sack &amp; Craig Macintosh"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/tmdoo/%Y/tmdoo%
> y%m%d.gif">
>                 <restrict>1</restrict>
>                 <restrict>2</restrict>
> @@ -311,12 +357,14 @@
>         class="simple"
>         title="Dick Tracy"
>         author="Dick Locher &amp; Michael Killian"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/tmdic/%Y/tmdic%
> y%m%d.gif">
>  </comic>
>  <comic id="deep"
>         class="simple"
>         title="Deep Cover"
>         author="Tim Eagan"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/deep/%Y/deep%y%
> m%d.gif">
>                 <restrict>1</restrict>
>                 <restrict>2</restrict>
> @@ -329,6 +377,7 @@
>         class="simple"
>         title="The 5th Wave"
>         author="Rich Tennant"
> +       languaje="English"
>         generic_uri="http://images.ucomics.com/comics/fw/%Y/fw%y%m%
> d.gif">
>                 <restrict>1</restrict>
>                  <restrict>2</restrict>
> @@ -342,30 +391,35 @@
>         class="simple"
>         title="The Duplex"
>         author="Glenn McCoy"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/dp/%Y/dp%y%m%
> d.gif">
>  </comic>
>  <comic id="crflo"
>         class="simple"
>         title="Flo and Friends"
>         author="John Gibel &amp; Jenny Campbell"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/crflo/%Y/crflo%
> y%m%d.gif">
>  </comic>
>  <comic id="fb"
>         class="simple"
>         title="For Better or For Worse"
>         author="Lynn Johnston"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/fb/%Y/fb%y%m%
> d.gif">
>  </comic>
>  <comic id="crfd"
>         class="simple"
>         title="Flight Deck"
>         author="Peter Waldner"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/crfd/%Y/crfd%y%
> m%d.gif">
>  </comic>
>  <comic id="ft"
>         class="simple"
>         title="FoxTrot"
>         author="Bill Amend"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/ft/%Y/ft%y%m%
> d.gif">
>                 <restrict>7</restrict>
>  </comic>
> @@ -373,18 +427,21 @@
>         class="simple"
>         title="Fred Basset"
>         author="Alex Graham"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/tmfba/%Y/tmfba%
> y%m%d.gif">
>  </comic>
>  <comic id="tmlol"
>         class="simple"
>         title="Lola"
>         author="Steve Dickenson &amp; Todd Clark"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/tmlol/%Y/tmlol%
> y%m%d.gif">
>  </comic>
>  <comic id="wapsi"
>         class="simple"
>         title="Wapsi Square"
>         author="Paul Taylor"
> +       languaje="English"
>         generic_uri="http://wapsisquare.com/comics/%Y%m%d.gif";>
>                 <restrict>6</restrict>
>                 <restrict>7</restrict>
> @@ -393,30 +450,35 @@
>         class="simple"
>         title="Gasoline Alley"
>         author="Jim Scancarelli"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/tmgas/%Y/tmgas%
> y%m%d.gif">
>  </comic>
>  <comic id="ga"
>         class="simple"
>         title="Garfield"
>         author="Jim Davis"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/ga/%Y/ga%y%m%
> d.gif">
>  </comic>
>  <comic id="fu"
>         class="simple"
>         title="The Fusco Brothers"
>         author="J.C. Duffy"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/fu/%Y/fu%y%m%
> d.gif">
>  </comic>
>  <comic id="fa"
>         class="simple"
>         title="Frank &amp; Ernest"
>         author="Bob Thaves"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/fa/%Y/fa%y%m%
> d.jpg">
>  </comic>
>  <comic id="eld"
>         class="simple"
>         title="Elderberries"
>         author="Phil Frank &amp; Joe Troise"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/eld/%Y/eld%y%m%
> d.gif">
>  </comic>
>  
> @@ -424,6 +486,7 @@
>         class="simple"
>         title="Hubert and Abby"
>         author="Mel Henze"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/haa/%Y/haa%y%m%
> d.gif">
>                 <restrict>7</restrict>
>  </comic>
> @@ -431,36 +494,42 @@
>         class="simple"
>         title="Housebroken"
>         author="Steve Watkins"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/tmhou/%Y/tmhou%
> y%m%d.gif">
>  </comic>
>  <comic id="crher"
>         class="simple"
>         title="Herb and Jamaal"
>         author="Stephen Bentley"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/crher/%Y/crher%
> y%m%d.gif">
>  </comic>
>  <comic id="tmhel"
>         class="simple"
>         title="Helen, Sweetheart of the Internet"
>         author="Peter Zale"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/tmhel/%Y/tmhel%
> y%m%d.gif">
>  </comic>
>  <comic id="crhea"
>         class="simple"
>         title="Heathcliff"
>         author="George Gately"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/crhea/%Y/crhea%
> y%m%d.gif">
>  </comic>
>  <comic id="hc"
>         class="simple"
>         title="Heart of the City"
>         author="Mark Tatulli"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/hc/%Y/hc%y%m%
> d.gif">
>  </comic>
>  <comic id="tmgil"
>         class="simple"
>         title="Gil Thorp"
>         author="Neal Rubin &amp; Frank McLaughlin"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/tmgil/%Y/tmgil%
> y%m%d.gif">
>                 <restrict>7</restrict>
>  </comic>
> @@ -468,30 +537,35 @@
>         class="simple"
>         title="Kudzu"
>         author="Doug Marlette"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/tmkud/%Y/tmkud%
> y%m%d.gif">
>  </comic>
>  <comic id="lc"
>         class="simple"
>         title="La Cucaracha"
>         author="Lalo Alcaraz"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/lc/%Y/lc%y%m%
> d.gif">
>  </comic>
>  <comic id="crlib"
>         class="simple"
>         title="Liberty Meadows"
>         author="Frank Cho"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/crlib/%Y/crlib%
> y%m%d.gif">
>  </comic>
>  <comic id="bl"
>         class="simple"
>         title="In the Bleachers"
>         author="Steve Moore"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/bl/%Y/bl%y%m%
> d.gif">
>  </comic>
>  <comic id="ibox"
>         class="simple"
>         title="Idiot Box"
>         author="Matt Bors"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/ibox/%Y/ibox%y%
> m%d.gif">
>                 <restrict>2</restrict>
>                 <restrict>3</restrict>
> @@ -503,42 +577,49 @@
>         class="simple"
>         title="Loose Parts"
>         author="Dave Blazek"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/tmloo/%Y/tmloo%
> y%m%d.gif">
>  </comic>
>  <comic id="lost"
>         class="simple"
>         title="Lost Sheep"
>         author="Dan Thompson"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/lost/%Y/lost%y%
> m%d.gif">
>  </comic>
>  <comic id="luc"
>         class="simple"
>         title="Lucky Cow"
>         author="Mark Pett"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/luc/%Y/luc%y%m%
> d.gif">
>  </comic>
>  <comic id="tmmee"
>         class="simple"
>         title="Meehan Streak"
>         author="Kieran Meehan"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/tmmee/%Y/tmmee%
> y%m%d.gif">
>  </comic>
>  <comic id="mb"
>         class="simple"
>         title="Mister Boffo"
>         author="Joe Martin"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/mb/%Y/mb%y%m%
> d.gif">
>  </comic>
>  <comic id="tmmid"
>         class="simple"
>         title="The Middletons"
>         author="Ralph Dunagin &amp; Dana Summers"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/tmmid/%Y/tmmid%
> y%m%d.gif">
>  </comic>
>  <comic id="mike"
>         class="simple"
>         title="MikeDonovan.com"
>         author="Mike Donovan"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/mike/%Y/mike%y%
> m%d.gif">
>                 <restrict>7</restrict>
>  </comic>
> @@ -546,24 +627,28 @@
>         class="simple"
>         title="Mixed Media"
>         author="Scott Willis &amp; Jack Ohman"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/tmmix/%Y/tmmix%
> y%m%d.gif">
>  </comic>
>  <comic id="nq"
>         class="simple"
>         title="Non Sequitur"
>         author="Wiley Miller"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/nq/%Y/nq%y%m%
> d.gif">
>  </comic>
>  <comic id="cpnst"
>         class="simple"
>         title="Nest Heads"
>         author="John Allen"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/cpnst/%Y/cpnst%
> y%m%d.gif">
>  </comic>
>  <comic id="crns"
>         class="simple"
>         title="Natural Selection"
>         author="Russ Wallace"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/crns/%Y/crns%y%
> m%d.gif">
>                 <restrict>7</restrict>
>  </comic>
> @@ -571,48 +656,56 @@
>         class="simple"
>         title="Momma"
>         author="Mell Lazarus"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/crmom/%Y/crmom%
> y%m%d.gif">
>  </comic>
>  <comic id="ob"
>         class="simple"
>         title="Overboard"
>         author="Chip Dunham"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/ob/%Y/ob%y%m%
> d.gif">
>  </comic>
>  <comic id="wppic"
>         class="simple"
>         title="Pickles"
>         author="Brian Crane"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/wppic/%Y/wppic%
> y%m%d.gif">
>  </comic>
>  <comic id="wpgen"
>         class="simple"
>         title="Out of the Gene Pool"
>         author="Matt Janz"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/wpgen/%Y/wpgen%
> y%m%d.gif">
>  </comic>
>  <comic id="crtoc"
>         class="simple"
>         title="The Other Coast"
>         author="Adrian Raeside"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/crtoc/%Y/crtoc%
> y%m%d.gif">
>  </comic>
>  <comic id="crobh"
>         class="simple"
>         title="One Big Happy"
>         author="Rick Detorie"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/crobh/%Y/crobh%
> y%m%d.gif">
>  </comic>
>  <comic id="oe"
>         class="simple"
>         title="Oddly Enough"
>         author="Chris Kemp"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/oe/%Y/oe%y%m%
> d.gif"> <restrict>7</restrict>
>  </comic>
>  <comic id="neu"
>         class="simple"
>         title="NEUROTICA"
>         author="Big Al the Gal"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/neu/%Y/neu%y%m%
> d.gif">
>                 <restrict>7</restrict>
>  </comic>
> @@ -620,30 +713,35 @@
>         class="simple"
>         title="Pooch Caf??"
>         author="Paul Gilligan"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/poc/%Y/poc%y%m%
> d.gif">
>  </comic>
>  <comic id="pop"
>         class="simple"
>         title="Pop Culture"
>         author="Steve McGarry"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/pop/%Y/pop%y%m%
> d.gif">
>  </comic>
>  <comic id="pr"
>         class="simple"
>         title="Preteena"
>         author="Allison Barrows"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/pr/%Y/pr%y%m%
> d.gif">
>  </comic>
>  <comic id="prc"
>         class="simple"
>         title="Prickly City"
>         author="Scott Stantis"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/prc/%Y/prc%y%m%
> d.gif">
>  </comic>
>  <comic id="tmqui"
>         class="simple"
>         title="The Quigmans"
>         author="Buddy Hickerson"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/tmqui/%Y/tmqui%
> y%m%d.gif">
>                 <restrict>7</restrict>
>  </comic>
> @@ -651,36 +749,42 @@
>         class="simple"
>         title="Real Life Adventures"
>         author="Gary Wise &amp; Lance Aldrich"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/rl/%Y/rl%y%m%
> d.gif">
>  </comic>
>  <comic id="tmplu"
>         class="simple"
>         title="Pluggers"
>         author="Gary Brookins"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/tmplu/%Y/tmplu%
> y%m%d.gif">
>  </comic>
>  <comic id="wpred"
>         class="simple"
>         title="Red and Rover"
>         author="Brian Basset"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/wpred/%Y/wpred%
> y%m%d.gif">
>  </comic>
>  <comic id="crrub"
>         class="simple"
>         title="Rubes"
>         author="Leigh Rubin"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/crrub/%Y/crrub%
> y%m%d.gif">
>  </comic>
>  <comic id="tmsho"
>         class="simple"
>         title="Shoe"
>         author="Chris Cassatt &amp; Gary Brookins"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/tmsho/%Y/tmsho%
> y%m%d.gif">
>  </comic>
>  <comic id="slow"
>         class="simple"
>         title="Slowpoke"
>         author="Jen Sorensen"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/slow/%Y/slow%y%
> m%d.gif">
>                 <restrict>2</restrict>
>                 <restrict>3</restrict>
> @@ -693,12 +797,14 @@
>         class="simple"
>         title="Speed Bump"
>         author="Dave Coverly"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/crspe/%Y/crspe%
> y%m%d.gif">
>  </comic>
>  <comic id="crsou"
>         class="simple"
>         title="State of the Union"
>         author="Carl Moore"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/crsou/%Y/crsou%
> y%m%d.gif">
>                 <restrict>7</restrict>
>  </comic>
> @@ -706,18 +812,21 @@
>         class="simple"
>         title="Stone Soup"
>         author="Jan Eliot"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/ss/%Y/ss%y%m%
> d.gif">
>  </comic>
>  <comic id="crstr"
>         class="simple"
>         title="Strange Brew" 
>         author="John Deering"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/crstr/%Y/crstr%
> y%m%d.gif">
>  </comic>
>  <comic id="tmsyl"
>         class="simple"
>         title="Sylvia"
>         author="Nicole Hollander"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/tmsyl/%Y/tmsyl%
> y%m%d.gif">
>                 <restrict>7</restrict>
>  </comic>
> @@ -725,18 +834,21 @@
>         class="simple"
>         title="Tank McNamara"
>         author="Jeff Millar &amp; Bill Hinds"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/tm/%Y/tm%y%m%
> d.gif">
>  </comic>
>  <comic id="wplif"
>         class="simple"
>         title="That's Life"
>         author="Mike Twohy"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/wplif/%Y/wplif%
> y%m%d.gif">
>  </comic>
>  <comic id="think"
>         class="simple"
>         title="(th)ink"
>         author="Keith Knight"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/think/%Y/think%
> y%m%d.gif">
>         <restrict>2</restrict>
>         <restrict>3</restrict>
> @@ -749,12 +861,14 @@
>         class="simple"
>         title="Through Thick and Thin"
>         author="Ralph Smith"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/cpthk/%Y/cpthk%
> y%m%d.gif">
>  </comic>
>  <comic id="tiny"
>         class="simple"
>         title="Tiny Sepuku"
>         author="Ken Cursoe"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/tiny/%Y/tiny%y%
> m%d.gif">
>                 <restrict>1</restrict>
>                 <restrict>2</restrict>
> @@ -767,6 +881,7 @@
>         class="simple"
>         title="Tom the Dancing Bug"
>         author="Ruben Bolling"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/td/%Y/td%y%m%
> d.gif">
>                 <restrict>1</restrict>
>                 <restrict>2</restrict>
> @@ -779,30 +894,35 @@
>         class="simple"
>         title="Willy n Ethel"
>         author="Joe Martin"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/wes/%Y/wes%y%m%
> d.gif">
>  </comic>
>  <comic id="crwiz"
>         class="simple"
>         title="Wizard of Id"
>         author="Brant Parker &amp; Johnny Hart"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/crwiz/%Y/crwiz%
> y%m%d.gif">
>  </comic>
>  <comic id="crzhi"
>         class="simple"
>         title="Zack Hill"
>         author="John Deering"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/crzhi/%Y/crzhi%
> y%m%d.gif">
>  </comic>
>  <comic id="zi"
>         class="simple"
>         title="Ziggy"
>         author="Tom Wilson &amp; Tom II"
> +       languaje="English"
>         generic_uri="http://picayune.uclick.com/comics/zi/%Y/zi%y%m%
> d.gif">
>  </comic>
>  <comic id="boredandevil"
>          class="simple"
>          title="Bored and evil"
>          author="Robert Koch"
> +       languaje="English"
>          generic_uri="http://www.boredandevil.com/strips/%Y-%m-%
> d.gif">
>                 <restrict>2</restrict>
>                  <restrict>4</restrict>
> @@ -814,6 +934,7 @@
>          class="simple"
>          title="Bruno the Bandit"
>          author="Ian McDonald"
> +       languaje="English"
>          generic_uri="http://brunothebandit.com/comics/%Y%m%da.gif";>
>                  <restrict>2</restrict>
>                  <restrict>4</restrict>

uff, vaya curro! Creo que nos ser?a mas ?til guardar el c?digo de las
locales, ya que en el futuro haremos una consulta de la locales del
sistema para hacer el filtro. De todas formas de momento dejalo as?, y
cuando estudiemos ese tema lo cambiamos.

> Index: src/buoh-comic.c
> ===================================================================
> RCS file: /cvsroot/buoh/buoh/src/buoh-comic.c,v
> retrieving revision 1.1
> diff -u -r1.1 buoh-comic.c
> --- src/buoh-comic.c    25 Jul 2005 19:03:45 -0000      1.1
> +++ src/buoh-comic.c    18 Aug 2005 19:55:25 -0000
> @@ -31,13 +31,15 @@
>         PROP_0,
>         PROP_TITLE,
>         PROP_AUTHOR,
> +       PROP_LANGUAJE,
>         PROP_ID,
> -               PROP_PIXBUF
> +       PROP_PIXBUF
>  };
>  
>  struct _BuohComicPrivate {
>         gchar     *author;
>         gchar     *title;
> +       gchar     *languaje;
>         gchar     *id;
>         GdkPixbuf *pixbuf;
>  };
> @@ -90,10 +92,11 @@
>            
>         buoh_comic->priv = BUOH_COMIC_GET_PRIVATE (buoh_comic);
>         
> -       buoh_comic->priv->author = NULL;
> -       buoh_comic->priv->title  = NULL;
> -       buoh_comic->priv->id     = NULL;
> -       buoh_comic->priv->pixbuf = NULL;
> +       buoh_comic->priv->author   = NULL;
> +       buoh_comic->priv->title    = NULL;
> +       buoh_comic->priv->languaje = NULL;
> +       buoh_comic->priv->id       = NULL;
> +       buoh_comic->priv->pixbuf   = NULL;
>  }
>  
>  static void
> @@ -123,6 +126,15 @@
>                                                               NULL,
> 
> G_PARAM_READWRITE));
>         g_object_class_install_property (object_class,
> +                                        PROP_LANGUAJE,
> +                                        g_param_spec_string
> ("languaje",
> +
> "Languaje",
> +
> "Languaje of the comic",
> +                                                             NULL,
> +
> G_PARAM_READWRITE));
> +
> +       
> +       g_object_class_install_property (object_class,
>                                          PROP_ID,
>                                          g_param_spec_string ("id",
>                                                               "Id",
> @@ -157,6 +169,11 @@
>                 comic->priv->title = NULL;
>         }
>  
> +       if (comic->priv->languaje) {
> +               g_free (comic->priv->languaje);
> +               comic->priv->languaje = NULL;
> +       }
> +
>         if (comic->priv->pixbuf) {
>                 g_object_unref (comic->priv->pixbuf);
>                 comic->priv->pixbuf = NULL;
> @@ -185,6 +202,11 @@
>                 comic->priv->author = g_value_dup_string (value);
>                 
>                 break;
> +       case PROP_LANGUAJE:
> +               g_free (comic->priv->languaje);
> +               comic->priv->languaje = g_value_dup_string (value);
> +
> +               break;
>         case PROP_ID:
>                 g_free (comic->priv->id);
>                 comic->priv->id = g_value_dup_string (value);
> @@ -219,6 +241,10 @@
>                 g_value_set_string (value, comic->priv->author);
>                 
>                 break;
> +       case PROP_LANGUAJE:
> +               g_value_set_string (value, comic->priv->languaje);
> +
> +               break;
>         case PROP_ID:
>                 g_value_set_string (value, comic->priv->id);
>                 
> @@ -245,7 +271,8 @@
>  BuohComic *
>  buoh_comic_new_with_info (const gchar *id,
>                           const gchar *title,
> -                         const gchar *author)
> +                         const gchar *author,
> +                         const gchar *languaje)
>  {
>         BuohComic *comic;
>  
> @@ -255,6 +282,7 @@
>                       "id", id,
>                       "title", title,
>                       "author", author,
> +                     "languaje", languaje,
>                       NULL);
>  
>         return comic;
> @@ -322,6 +350,14 @@
>  }
>  
>  void
> +buoh_comic_set_languaje (BuohComic *comic, const gchar *languaje)
> +{
> +       g_return_if_fail (BUOH_IS_COMIC (comic));
> +
> +       g_object_set (G_OBJECT (comic), "languaje", languaje, NULL);
> +}
> +
> +void
>  buoh_comic_set_id (BuohComic *comic, const gchar *id)
>  {
>         g_return_if_fail (BUOH_IS_COMIC (comic));
> @@ -374,6 +410,18 @@
>         g_object_get (G_OBJECT (comic), "author", &author, NULL);
>  
>         return author;
> +}
> +
> +gchar *
> +buoh_comic_get_languaje (BuohComic *comic)
> +{
> +       gchar *languaje = NULL;
> +
> +       g_return_val_if_fail (BUOH_IS_COMIC (comic), NULL);
> +
> +       g_object_get (G_OBJECT (comic), "languaje", &languaje, NULL);
> +
> +       return languaje;
>  }
>  
>  gchar *
> Index: src/buoh-comic.h
> ===================================================================
> RCS file: /cvsroot/buoh/buoh/src/buoh-comic.h,v
> retrieving revision 1.1
> diff -u -r1.1 buoh-comic.h
> --- src/buoh-comic.h    25 Jul 2005 19:03:45 -0000      1.1
> +++ src/buoh-comic.h    18 Aug 2005 19:55:25 -0000
> @@ -58,7 +58,8 @@
>  BuohComic *buoh_comic_new           (void);
>  BuohComic *buoh_comic_new_with_info (const gchar *id,
>                                      const gchar *title,
> -                                    const gchar *author);
> +                                    const gchar *author,
> +                                    const gchar *languaje);
>  
>  /*gboolean comic_is_the_last (Comic *comic);*/
>  
> @@ -69,6 +70,8 @@
>                                             const gchar *title);
>  void       buoh_comic_set_author           (BuohComic   *comic,
>                                             const gchar *author);
> +void       buoh_comic_set_languaje         (BuohComic   *comic,
> +                                           const gchar *languaje);
>  void       buoh_comic_set_id               (BuohComic   *comic,
>                                             const gchar *id);
>  void       buoh_comic_set_pixbuf           (BuohComic   *comic,
> @@ -78,6 +81,7 @@
>  gchar     *buoh_comic_get_uri              (BuohComic   *comic);
>  gchar     *buoh_comic_get_title            (BuohComic   *comic);
>  gchar     *buoh_comic_get_author           (BuohComic   *comic);
> +gchar     *buoh_comic_get_languaje         (BuohComic   *comic);
>  gchar     *buoh_comic_get_id               (BuohComic   *comic);
>  gchar     *buoh_comic_get_page             (BuohComic   *comic);
>  gchar     *buoh_buoh_comic_get_uri         (BuohComic   *comic);
> Index: src/buoh-properties-dialog.c
> ===================================================================
> RCS file: /cvsroot/buoh/buoh/src/buoh-properties-dialog.c,v
> retrieving revision 1.2
> diff -u -r1.2 buoh-properties-dialog.c
> --- src/buoh-properties-dialog.c        25 Jul 2005 19:03:45
> -0000      1.2
> +++ src/buoh-properties-dialog.c        18 Aug 2005 19:55:25 -0000
> @@ -93,11 +93,79 @@
>  void
>  buoh_properties_dialog_set_comic (BuohPropertiesDialog *dialog,
> BuohComic *comic)
>  {
> +       GtkWidget *table;
> +       GtkWidget *label_title, *label_title_val;
> +       GtkWidget *label_author, * label_author_val;
> +       GtkWidget *label_uri, *label_uri_val;
> +       GtkWidget *label_languaje, *label_languaje_val;
> +       gchar     *markup;
> +       
>         g_return_if_fail (BUOH_IS_COMIC (comic));
>  
>         dialog->priv->comic = comic;
>  
> -       /* TODO: fill the dialog */
> +       table = gtk_table_new (4, 2, FALSE);
> +       
> +       label_title = gtk_label_new (NULL);
> +       markup = g_markup_printf_escaped ("<b>Title</b>");
> +       gtk_label_set_markup (GTK_LABEL (label_title), markup);
> +
> +       label_author = gtk_label_new (NULL);
> +       markup = g_markup_printf_escaped (_("<b>Author:</b>"));

leak

> +       gtk_label_set_markup (GTK_LABEL (label_author), markup);
> +
> +       label_uri = gtk_label_new (NULL);       
> +       markup = g_markup_printf_escaped (_("<b>URI:</b>"));

leak

> +       gtk_label_set_markup (GTK_LABEL (label_uri), markup);
> +
> +       label_languaje = gtk_label_new (NULL);  
> +       markup = g_markup_printf_escaped (_("<b>Languaje:</b>"));

leak

> +       gtk_label_set_markup (GTK_LABEL (label_languaje), markup);
> +
> +       g_free (markup);

cada vez que llamas a g_markup_printf_escaped se reserva memoria, la
segunda vez que lo llamas reservas memoria y pierdes el puntero a la
zona que reservaste con la primera llamada, con lo que no podr? ser
liberada. Esto es otra consecuencia de lo que le dec?a el otro dia a
esteban, es mejor liberar la memoria en cuanto no la necesitas. 

En este caso concreto ni siquiera es necesario la variable markup. La
funci?n g_markup_printf_escaped se utiliza cuando las cadena contiene
caracteres com <> y otros especiales, pero que no son del marcado de
pango, sino que son de la propia cadena, supon que estas escribiendo una
cadena xml o html. En nuestro caso puedes utilizar directamente
gtk_label_set_markup (GTK_LABEL (label_uri), <b>cadena</b>) y no
necesitas de una variable auxiliar.

La cadena URI no es muy user-friendly, la mayor?a de mis amigos no
sabr?an lo que es. Por otro lado sabemos que la uri es siempre una
direcci?n http por lo que podr?amos usar URL mas ampliamente utilizado,
pero seguir?a siendo t?cnico. Quiz?s algo como direcci?n de internet o
algo as?, no se. Como llaman vuestros padre/amigos a las urls?

> +       
> +       label_title_val    = gtk_label_new (buoh_comic_get_title
> (comic));

leak

> +       label_author_val   = gtk_label_new (buoh_comic_get_author
> (comic));

leak

> +       label_uri_val      = gtk_label_new (buoh_comic_get_uri
> (comic));

leak

> +       label_languaje_val = gtk_label_new (buoh_comic_get_languaje
> (comic));

leak

Cada vez que pides un atributo de una comic se te entrega una copia.
Cuando estableces la etiqueta a un label si te fijas recibe con un const
gchar * lo cual nos dice que el label copiar? la cadena que le des, pero
no la modificar? y por tanto no la liberar?. Si no utilizas una variable
auxiliar en este caso no podr?s liberar esa memoria, puesto que el
puntero se lo estas entregando directamente a la funci?n.

> +
> +       gtk_label_set_selectable (GTK_LABEL (label_title_val), TRUE);
> +       gtk_label_set_selectable (GTK_LABEL (label_author_val), TRUE);
> +       gtk_label_set_selectable (GTK_LABEL (label_uri_val), TRUE);
> +       
> +       /* TODO: Fix the labels alignment to the left side */
> +       
> +       gtk_table_attach (GTK_TABLE (table), GTK_WIDGET (label_title),
> +                         0, 1, 0, 1, 0, 0, 5, 5);
> +       gtk_table_attach (GTK_TABLE (table), GTK_WIDGET
> (label_title_val),
> +                         1, 2, 0, 1, 0, 0, 5, 5);
> +       gtk_table_attach (GTK_TABLE (table), GTK_WIDGET
> (label_author),
> +                         0, 1, 1, 2, 0, 0, 5, 5);
> +       gtk_table_attach (GTK_TABLE (table), GTK_WIDGET
> (label_author_val),
> +                         1, 2, 1, 2, 0, 0, 5, 5);
> +       gtk_table_attach (GTK_TABLE (table), GTK_WIDGET (label_uri),
> +                         0, 1, 2, 3, 0, 0, 5, 5);
> +       gtk_table_attach (GTK_TABLE (table), GTK_WIDGET
> (label_uri_val),
> +                         1, 2, 2, 3, 0, 0, 5, 5);
> +       gtk_table_attach (GTK_TABLE (table), GTK_WIDGET
> (label_languaje),
> +                         0, 1, 3, 4, 0, 0, 5, 5);
> +       gtk_table_attach (GTK_TABLE (table), GTK_WIDGET
> (label_languaje_val),
> +                         1, 2, 3, 4, 0, 0, 5, 5);
> +               
> +       gtk_widget_show (label_title);
> +       gtk_widget_show (label_title_val);
> +       gtk_widget_show (label_author);
> +       gtk_widget_show (label_author_val);
> +       gtk_widget_show (label_uri);
> +       gtk_widget_show (label_uri_val);
> +       gtk_widget_show (label_languaje);
> +       gtk_widget_show (label_languaje_val);
> +
> +       gtk_box_pack_start_defaults (GTK_BOX (GTK_DIALOG
> (dialog)->vbox),
> +                                    GTK_WIDGET (table));
> +
> +       gtk_widget_show (table);
> +       
>  }
>  
>  GtkWidget *
> Index: src/buoh.c
> ===================================================================
> RCS file: /cvsroot/buoh/buoh/src/buoh.c,v
> retrieving revision 1.15
> diff -u -r1.15 buoh.c
> --- src/buoh.c  18 Aug 2005 18:37:13 -0000      1.15
> +++ src/buoh.c  18 Aug 2005 19:55:25 -0000
> @@ -136,7 +136,7 @@
>         xmlNodePtr    node;
>         xmlNodePtr    child;
>         BuohComic    *comic;
> -       xmlChar      *id, *class, *title, *author, *uri;
> +       xmlChar      *id, *class, *title, *author, *languaje, *uri;
>         gboolean      visible;
>         xmlChar      *restriction;
>         GDateWeekday  restriction_date;
> @@ -163,6 +163,7 @@
>                                     G_TYPE_BOOLEAN,
>                                     G_TYPE_STRING,
>                                     G_TYPE_STRING,
> +                                   G_TYPE_STRING,
>                                     G_TYPE_POINTER,
>                                     -1);
>         
> @@ -175,15 +176,17 @@
>  
>                         /* Comic simple */
>                         if (g_ascii_strcasecmp ((const gchar *)class,
> "simple") == 0) {
> -                               id     = xmlGetProp (node, (xmlChar *)
> "id");
> -                               title  = xmlGetProp (node, (xmlChar *)
> "title");
> -                               author = xmlGetProp (node, (xmlChar *)
> "author");
> -                               uri    = xmlGetProp (node, (xmlChar *)
> "generic_uri");
> +                               id       = xmlGetProp (node, (xmlChar
> *) "id");
> +                               title    = xmlGetProp (node, (xmlChar
> *) "title");
> +                               author   = xmlGetProp (node, (xmlChar
> *) "author");
> +                               languaje = xmlGetProp (node, (xmlChar
> *) "languaje");
> +                               uri      = xmlGetProp (node, (xmlChar
> *) "generic_uri");
>  
>                                 comic = BUOH_COMIC
> (comic_simple_new_with_info (
>                                                             (gchar
> *)id,
>                                                             (gchar
> *)title,
>                                                             (gchar
> *)author,
> +                                                           (gchar
> *)languaje,
>                                                             (gchar
> *)uri));
>  
>                                 /* Read the restrictions */
> @@ -213,12 +216,14 @@
> 
> COMIC_LIST_VISIBLE, visible,
>                                                     COMIC_LIST_TITLE,
> title,
>                                                     COMIC_LIST_AUTHOR,
> author,
> +
> COMIC_LIST_LANGUAJE, languaje,
>                                                     COMIC_LIST_COMIC,
> (gpointer) comic,
>                                                     -1);
>  
>                                 g_free (id);
>                                 g_free (title);
>                                 g_free (author);
> +                               g_free (languaje);
>                                 g_free (uri);
>                         }
>  
> Index: src/buoh.h
> ===================================================================
> RCS file: /cvsroot/buoh/buoh/src/buoh.h,v
> retrieving revision 1.3
> diff -u -r1.3 buoh.h
> --- src/buoh.h  25 Jul 2005 14:54:36 -0000      1.3
> +++ src/buoh.h  18 Aug 2005 19:55:26 -0000
> @@ -28,6 +28,7 @@
>         COMIC_LIST_VISIBLE,
>         COMIC_LIST_TITLE,
>         COMIC_LIST_AUTHOR,
> +       COMIC_LIST_LANGUAJE,
>         COMIC_LIST_COMIC,
>         N_COLUMNS
>  };
> Index: src/comic-simple.c
> ===================================================================
> RCS file: /cvsroot/buoh/buoh/src/comic-simple.c,v
> retrieving revision 1.8
> diff -u -r1.8 comic-simple.c
> --- src/comic-simple.c  18 Aug 2005 17:30:45 -0000      1.8
> +++ src/comic-simple.c  18 Aug 2005 19:55:26 -0000
> @@ -60,7 +60,8 @@
>  enum {
>         PROP_,
>         PROP_TITLE,
> -       PROP_AUTHOR
> +       PROP_AUTHOR,
> +       PROP_LANGUAGE
>  };
>  
>  
> @@ -179,6 +180,7 @@
>  comic_simple_new_with_info (const gchar *id,
>                             const gchar *title,
>                             const gchar *author,
> +                           const gchar *languaje,
>                             const gchar *generic_uri)
>  {
>         ComicSimple        *comic;
> @@ -186,8 +188,11 @@
>         comic = comic_simple_new ();
>  
>         g_object_set (G_OBJECT (comic), "id", id,
> -                     "title", title, "author", author,
> -                     "generic_uri", generic_uri, NULL);
> +                     "title", title,
> +                     "author", author,
> +                     "languaje", languaje,
> +                     "generic_uri", generic_uri,
> +                     NULL);
>            
>         return COMIC_SIMPLE (comic);
>  }
> Index: src/comic-simple.h
> ===================================================================
> RCS file: /cvsroot/buoh/buoh/src/comic-simple.h,v
> retrieving revision 1.4
> diff -u -r1.4 comic-simple.h
> --- src/comic-simple.h  25 Jul 2005 19:03:45 -0000      1.4
> +++ src/comic-simple.h  18 Aug 2005 19:55:26 -0000
> @@ -53,6 +53,7 @@
>  ComicSimple  *comic_simple_new_with_info (const gchar *id,
>                                           const gchar *title,
>                                           const gchar *author,
> +                                         const gchar *languaje,
>                                           const gchar *main_uri);
>  
>  void   comic_simple_set_title (BuohComic *comic, const gchar *title);
> 

Salu2
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Carlos Garcia Campos a.k.a. KaL
   elkalmail yahoo es
   carlosgc gnome org
   http://carlosgc.linups.org
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=             
PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x523E6462
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://forge.novell.com/pipermail/buoh-dev/attachments/20050818/d5b78f9a/attachment.pgp


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