--- blogtk-1.1.orig/debian/install +++ blogtk-1.1/debian/install @@ -0,0 +1,5 @@ +src/*.py usr/share/blogtk +pixmaps/* usr/share/blogtk +debian/BloGTK usr/bin +debian/blogtk.xpm usr/share/pixmaps +debian/blogtk.desktop usr/share/applications --- blogtk-1.1.orig/debian/blogtk.xpm +++ blogtk-1.1/debian/blogtk.xpm @@ -0,0 +1,246 @@ +/* XPM */ +static char * blogtk_xpm[] = { +"32 29 214 2", +" c None", +". c #000000", +"+ c #090603", +"@ c #160D07", +"# c #050302", +"$ c #070402", +"% c #0F0804", +"& c #050301", +"* c #56321B", +"= c #ED8949", +"- c #C4713C", +"; c #A05D31", +"> c #6A3E21", +", c #442715", +"' c #22140B", +") c #0B0603", +"! c #0E0804", +"~ c #4C2C17", +"{ c #854D29", +"] c #A86234", +"^ c #CB753E", +"/ c #E48446", +"( c #E38446", +"_ c #C5723C", +": c #8B502B", +"< c #1A0F08", +"[ c #99592F", +"} c #FF9650", +"| c #FA914C", +"1 c #FF944E", +"2 c #FE934E", +"3 c #F48D4B", +"4 c #F8904C", +"5 c #5B351C", +"6 c #040201", +"7 c #5C361C", +"8 c #7A4726", +"9 c #A76133", +"0 c #DA7E43", +"a c #F78F4B", +"b c #FF954F", +"c c #FE934D", +"d c #F9904C", +"e c #F68E4B", +"f c #FB914D", +"g c #FF9850", +"h c #C3713C", +"i c #120A05", +"j c #0D0804", +"k c #D57B41", +"l c #F88F4C", +"m c #F28C4A", +"n c #FF934E", +"o c #BB6C39", +"p c #110A05", +"q c #150C06", +"r c #EF8A49", +"s c #FF9750", +"t c #F78F4C", +"u c #F58E4B", +"v c #372010", +"w c #341E10", +"x c #F18C4A", +"y c #F68E4C", +"z c #E78647", +"A c #21140A", +"B c #23140B", +"C c #EA8748", +"D c #361F10", +"E c #523019", +"F c #F38D4B", +"G c #894F2A", +"H c #2D1A0D", +"I c #EC8948", +"J c #F38C4A", +"K c #25160B", +"L c #6E4022", +"M c #DD8043", +"N c #1D1109", +"O c #3D2312", +"P c #F18B4A", +"Q c #F38D4A", +"R c #FA914D", +"S c #EE8949", +"T c #D77C42", +"U c #A35E32", +"V c #824B28", +"W c #4E2D18", +"X c #F48D4A", +"Y c #774524", +"Z c #351F10", +"` c #3D2313", +" . c #FC924D", +".. c #693D20", +"+. c #190F08", +"@. c #DE8144", +"#. c #F58D4A", +"$. c #3A2212", +"%. c #61381E", +"&. c #FA904C", +"*. c #C9743D", +"=. c #683C20", +"-. c #93552D", +";. c #63391F", +">. c #FE944E", +",. c #BD6D3A", +"'. c #FF944F", +"). c #9D5B30", +"!. c #402513", +"~. c #EF8B49", +"{. c #C3713B", +"]. c #100A05", +"^. c #A45F32", +"/. c #55311A", +"(. c #874E29", +"_. c #6A3D21", +":. c #3E2413", +"<. c #E68546", +"[. c #CF783F", +"}. c #1E1109", +"|. c #110A06", +"1. c #DC7F43", +"2. c #D27940", +"3. c #A55F32", +"4. c #462816", +"5. c #7F4927", +"6. c #060402", +"7. c #CE773F", +"8. c #CA753E", +"9. c #90542C", +"0. c #60381D", +"a. c #9A592F", +"b. c #D97E43", +"c. c #190E08", +"d. c #1D1008", +"e. c #E98747", +"f. c #FF964F", +"g. c #6D3E21", +"h. c #90532C", +"i. c #F08B4A", +"j. c #FD924D", +"k. c #BF6E3A", +"l. c #030201", +"m. c #472916", +"n. c #F7904C", +"o. c #56321A", +"p. c #E98647", +"q. c #9E5C30", +"r. c #6E3F21", +"s. c #AB6334", +"t. c #8D512B", +"u. c #FF9A52", +"v. c #DB7F43", +"w. c #0C0704", +"x. c #7D4826", +"y. c #A86133", +"z. c #452815", +"A. c #663B1F", +"B. c #784625", +"C. c #814A28", +"D. c #5A341C", +"E. c #A56032", +"F. c #643A1E", +"G. c #24150B", +"H. c #8B502A", +"I. c #E58446", +"J. c #F48E4B", +"K. c #412614", +"L. c #F98F4C", +"M. c #60381E", +"N. c #7C4826", +"O. c #FF954E", +"P. c #884F29", +"Q. c #1D1009", +"R. c #E88647", +"S. c #FE924D", +"T. c #BF6F3A", +"U. c #0F0904", +"V. c #422614", +"W. c #090503", +"X. c #DF8144", +"Y. c #1F120A", +"Z. c #804A28", +"`. c #E98748", +" + c #A66033", +".+ c #62391E", +"++ c #FD924E", +"@+ c #512F19", +"#+ c #834B28", +"$+ c #95562E", +"%+ c #D67C42", +"&+ c #724223", +"*+ c #1F1209", +"=+ c #6F4022", +"-+ c #F58D4B", +";+ c #E08244", +">+ c #C2703B", +",+ c #8F532C", +"'+ c #190E07", +")+ c #B56937", +"!+ c #94562D", +"~+ c #EB8848", +"{+ c #D57C41", +"]+ c #7B4726", +"^+ c #321D0F", +"/+ c #794625", +"(+ c #9C5A2F", +"_+ c #120B05", +":+ c #080402", +"<+ c #2B190D", +"[+ c #2D1A0E", +"}+ c #0A0603", +"|+ c #60371D", +"1+ c #9A5930", +" . . ", +" . . + @ # . . . . ", +" . . . $ % % & . . * = - ; > , ' ) . ", +" . . . ! ~ { ] ^ / ( _ : < . . [ } | 1 2 3 4 5 . ", +" 6 7 8 9 0 a b c d e e f g h i j k l m m m n o p ", +" q r s 2 t 3 m m m m m m u e v w x 3 m m y z A . ", +" B C e m m m m m m m m m u r D . E l F m m b G . ", +" H I u m m m J u u m m m u = K . L 1 m m l M N . ", +" O P u m m Q R r S J m m f T ) . U 2 m m 1 V . ", +" . W t 3 m X x Y Z ` ( e 3 .... . +.@.a m #.e $.. ", +" . %. .Q m &.*.. . =.a 3 b -.. . ;.>.m m .,.6 ", +" . L '.m m >.).. !.~.e n {.].. . ^.>.m J ./.. ", +" . (.b m J >._.:.<.d f [.}.. . |.1.l m d 2.j ", +" . 3.2 m J m - I d a k < . . 4.a X m b 5.. ", +" 6.7.d m m m d u m e 8.9.0.. . a.>.m l b.c.. ", +" . d.e.u m m m m m Q m a b f.g.. . |.M l m '.h.. ", +" . $.i.u m m 3 1 1 f f x m j.k.l.. m.n.X X t 4.. ", +" . o.d F m 3 p.q.r.7 s.4 J &.8.6.. t.u.f.u.v.w. ", +" . x.b m m 2 U . . . > 2 m 1 y.. . z.A.B.C.D.. ", +" . E.2 m Q 2 F.. G.H.I.u u J.K.. . ", +" 6.7.L.m 3 P M.N.<.O.e m O.P.. . . . ", +" . Q.R.e m m P I .t m m S.T.U.. . Q.V.` W.. ", +" . :.m 3 m m m 3 J m m j.X.Y.. . . Z.`.3 d +6 ", +" . .+++J m m m m m d 1 <.@+. . . #+1 l 3 l P G.. ", +" . $+'.m m m m u 1 %+&+*+. . =+1 -+m m l ;+@ . ", +" l.>+2 u l 2 b m ,+'+. . )+1 x m u g !+. ", +". q M P ~+{+s.]+^+. . . /+s b b u (+_+ ", +" :+<+[+' }+. . . . 6 |+1+V ` . . ", +" . . . . . . . . "}; --- blogtk-1.1.orig/debian/changelog +++ blogtk-1.1/debian/changelog @@ -0,0 +1,141 @@ +blogtk (1.1-2ubuntu3) karmic; urgency=low + + * debian/patches/zz-fix-deprecated-configparser-options.patch (LP: #364745) + - Python 2.6 Rev 60976 has deprecated usage of the "Default" section + in ConfigParser. + - Updated source to use "Default Server" instead of "Default". + - Patch file has conflict with earlier non numbered patches so prefixed + with "zz" to ensure it is applied last. + + -- Ralph Taylor Sun, 21 Jun 2009 13:58:14 +0100 + +blogtk (1.1-2ubuntu2) hardy; urgency=low + + * debian/install: + - Add three missing files (b-32.png, blogtk-icon.png, blogtk.glade). + * debian/patches/fix-deprecated-true-false.patch: + - Replace Gtk.TRUE with True and GTK.False with False in all + Python files to avoid a large amount of deprecation warnings. + * debian/BloGTK, debian/patches/hide-abort-traceback.patch: + - Catch KeyboardInterrupt exceptions to hide ugly tracebacks. + + -- Siegfried-Angel Gevatter Pujals (RainCT) Fri, 29 Feb 2008 23:35:23 +0100 + +blogtk (1.1-2ubuntu1) hardy; urgency=low + + [ Siegfried-Angel Gevatter Pujals (RainCT) ] + * Complete package clean-up (this package is now only maintained in + Ubuntu, it was removed from Debian). + * debian/control: + - Change Maintainer field to Ubuntu MOTU Developers. + - Drop docbook-to-man build dependency, as the manpage has been + replaced by a new one written in groff (see below). + - Drop imagemagick build dependecy, as we don't install a 16x16 + version of the menu anymore. + - Add cdbs build dependency. + - Move debhelper from Build-Depends-Indep to Build-Depends. + - Bump standards version to 3.7.3 and add a Homepage field. + - Fix XS-Python-Version field. + - Add Vcs-Bzr and Vcs-Broswer fields. + * debian/rules: + - Switch to cdbs and remove all now unneeded stuff. + - Add simple-patchsys. + - Remove the 16x16 version of the menu. + * debian/pycompat: + - Remove it, as it isn't necessary with pycentral. + * debian/blogtk.menu: + - Change section to the new "Applications/Network/Web News". + - Formatting changes. + - Rename it to debian/menu. + * debian/blogtk.desktop: + - Add a new .desktop file which respects FreeDesktop.org's + standards and contains Catalan and Spanish translations. + * debian/compat: + - Bump to version 5 as it has some nice features which can't harm. + * debian/blogtk.1, debian/blogtk.sgml, debian/manpages: + - Remove the old manpage and add a new one written in groff. + - Add a debian/manpages file to install it. + * debian/copyright: + - Change download URL to a more direct one. + - Add licensing information for the new manpage. + - Mention re-packaging. + - Formatting changes. + * debian/install: + - Add this files and install the files with it instead of using + Upstream's Makefile, which would need to be patched and is uglier. + * debian/blogtk.links: + - Rename this file to debian/links. + - Change the executable's name to be all lowercase. + * debian/BloGTK: + - Add this launcher (which prints a warning message and the runs + the applicaiton) for a clean transition to the lowercase executable. + * debian/blogtk.docs, debian/blogtk.dirs: + - Remove them. + * debian/patches/fix-shabangs.patch: + - Fix shabangs for all .py files in src/. + * debian/patches/fix-python25-crash.patch: + - Fix a crash with URLs that don't start with http/https with + Python 2.5, thanks to Simon Ochsenreither! + + -- Siegfried-Angel Gevatter Pujals (RainCT) Fri, 29 Feb 2008 20:04:54 +0100 + +blogtk (1.1-2build1) feisty; urgency=low + + * Rebuild for python2.5 as the default python version. + + -- Matthias Klose Mon, 15 Jan 2007 17:53:20 +0000 + +blogtk (1.1-2) unstable; urgency=low + + * New maintainer + * Modify the dependences. (Closes #362828) + + -- Diego Andres Sanabria (diegueus9) Mon, 28 Aug 2006 16:27:39 -0500 + +blogtk (1.1-1) unstable; urgency=low + + * New upstream release. + * Acknowledge 1.0-1.1 NMU. (Closes: #250214) + * Update to Standards-Version 3.6.2 (no changes required). + * Correct dependency on python-gnome2-extras for python gtkhtml2 module. + (Closes: #319274, #314867) + * When creating a .BloGTK configuration directory, create it with 0700 + permissions to avoid having passwords visible to other users. (Closes: + #276239) + * Add hints to Debian menu entry. (Closes: #314216) + + -- Brian Bassett Fri, 17 Feb 2006 13:08:41 -0800 + +blogtk (1.0-1.1) unstable; urgency=low + + * Non Maintainer Upload. + * debian/control + - Build-depends on pkg-config. (Closes: #250214) + + -- Gustavo Franco Fri, 28 May 2004 12:04:31 -0300 + +blogtk (1.0-1) unstable; urgency=low + + * New upstream release + + -- Brian Bassett Wed, 21 Apr 2004 12:23:07 -0700 + +blogtk (0.96-1) unstable; urgency=low + + * New upstream release + * Add python build-dep to workaround FTBFS. (Closes: #241599) + + -- Brian Bassett Thu, 1 Apr 2004 22:06:53 -0800 + +blogtk (0.95-1) unstable; urgency=low + + * New upstream release + + -- Brian Bassett Wed, 10 Mar 2004 09:13:22 -0800 + +blogtk (0.9-1-1) unstable; urgency=low + + * Initial Release. (Closes: #217153) + + -- Brian Bassett Sat, 21 Feb 2004 23:40:42 -0800 + --- blogtk-1.1.orig/debian/blogtk.desktop +++ blogtk-1.1/debian/blogtk.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Type=Application +Name=BloGTK Weblog Client +Name[ca]=Editor de blocs BloGTK +Name[es]=Editor de blogs BloGTK +Comment=Publish articles in your weblog +Comment[ca]=Publiqueu articles al vostre bloc +Comment[es]=Publica artículos en tu blog +Exec=blogtk +Icon=blogtk +StartupNotify=true +Categories=Network; --- blogtk-1.1.orig/debian/links +++ blogtk-1.1/debian/links @@ -0,0 +1,2 @@ +usr/share/blogtk/BloGTK.py usr/bin/blogtk +usr/share/man/man1/blogtk.1.gz usr/share/man/man1/BloGTK.1.gz --- blogtk-1.1.orig/debian/rules +++ blogtk-1.1/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk + +binary-install/blogtk:: + chmod -x debian/blogtk/usr/share/blogtk/*.py + chmod +x debian/blogtk/usr/share/blogtk/BloGTK.py + dh_pycentral -pblogtk + +clean:: + rm -rf debian/src --- blogtk-1.1.orig/debian/menu +++ blogtk-1.1/debian/menu @@ -0,0 +1,3 @@ +?package(blogtk): needs="X11" section="Applications/Network/Web News" \ + title="BloGTK" command="/usr/bin/blogtk" hints="blogging" \ + icon="/usr/share/pixmaps/blogtk.xpm" --- blogtk-1.1.orig/debian/BloGTK +++ blogtk-1.1/debian/BloGTK @@ -0,0 +1,16 @@ +#!/usr/bin/python + +import sys + +sys.path.append('/usr/share/blogtk') + +from BloGTK import * + +print 'Warning: This command has been deprecated and may be removed in future versions.' +print 'Warning: Please run it as "/usr/bin/blogtk" (all lowercase) instead.' + +try: + blogtk = BloGTK() + blogtk.main() +except KeyboardInterrupt: + sys.exit(1) --- blogtk-1.1.orig/debian/control +++ blogtk-1.1/debian/control @@ -0,0 +1,26 @@ +Source: blogtk +Section: web +Priority: optional +Maintainer: Ubuntu MOTU Developers +Vcs-Bzr: http://bazaar.launchpad.net/~ubuntu-dev/ubuntu-python-apps/blogtk-ubuntu +Vcs-Browser: https://code.launchpad.net/~ubuntu-dev/ubuntu-python-apps/blogtk-ubuntu +Homepage: http://blogtk.sourceforge.net/ +Build-Depends: cdbs (>= 0.4.49), debhelper (>= 5.0.37.2), python, pkg-config (>= 0.15.0-4) +Build-Depends-Indep: python-central (>=0.5) +XS-Python-Version: all +Standards-Version: 3.7.3 + +Package: blogtk +Architecture: all +Depends: ${python:Depends}, python-gtk2 (>= 1.19.13-3), python-gnome2 (>= 1.19.13-3), python-glade2 (>= 1.19.13-3) +Recommends: aspell +XB-Python-Version: ${python:Versions} +Description: GTK Weblogging client + BloGTK is a weblogging client that allows users to post to their blogs + without the need for a web browser. It features the following: + . + * Connects with blogging systems like Blogger, Movable Type, as well + as any system that uses the MetaWeblog API. + * Supports advanced editing of posts including custom HTML tags and + offline post saving and editing. + * Supports basic HTTP proxies. --- blogtk-1.1.orig/debian/pycompat +++ blogtk-1.1/debian/pycompat @@ -0,0 +1 @@ +2 --- blogtk-1.1.orig/debian/copyright +++ blogtk-1.1/debian/copyright @@ -0,0 +1,46 @@ +This package was debianized by Brian Bassett on +Sat, 21 Feb 2004 23:40:42 -0800. + +It has been re-packaged nearly completely by Siegfried-Angel Gevatter Pujals + on Fri, 28 Feb 2008 21:22:30 +0100. + +It was downloaded from http://sourceforge.net/project/showfiles.php?group_id=87493 + +Upstream Author: + + Jay Reding + +Copyright: + + Copyright (C) 2004 Jay Reding + All rights reserved. + +License: + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN + ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + +The manpage provided with this package (debian/blogtk.1) is property +of Siegfried-Angel Gevatter and is released under +the same license. --- blogtk-1.1.orig/debian/blogtk.1 +++ blogtk-1.1/debian/blogtk.1 @@ -0,0 +1,21 @@ +.TH BLOGTK "1" "February 29, 2008" + +.SH NAME +blogtk \- graphical weblog client + +.SH SYNOPSIS +.B blogtk + +.SH DESCRIPTION +\fBblogtk\fP is a graphical application that lets you publish new posts +on a selection of blogging systems without having to use any web browser +for that. + +.SH AUTHOR +\fBblogtk\fP was written by Jay Reding , but it +looks like the project has been abandoned for some time. This manual page +has been written by Siegfried-Angel Gevatter . + +.SH COPYRIGHT +Both, \fBblogtk\fP and this manpage, are Free Software released to the +public under the BSD License. --- blogtk-1.1.orig/debian/manpages +++ blogtk-1.1/debian/manpages @@ -0,0 +1 @@ +debian/blogtk.1 --- blogtk-1.1.orig/debian/compat +++ blogtk-1.1/debian/compat @@ -0,0 +1 @@ +5 --- blogtk-1.1.orig/debian/patches/hide-abort-traceback.patch +++ blogtk-1.1/debian/patches/hide-abort-traceback.patch @@ -0,0 +1,14 @@ +diff -Nur blogtk-1.1/src/BloGTK.py blogtk-1.1.new/src/BloGTK.py +--- blogtk-1.1/src/BloGTK.py 2008-02-29 23:43:23.000000000 +0100 ++++ blogtk-1.1.new/src/BloGTK.py 2008-02-29 23:44:14.000000000 +0100 +@@ -1241,5 +1241,8 @@ + # This function initializes the app on load, calling the main function. + # When the main function is called __init__ is done automagically. + if __name__ == "__main__": +- blogtk = BloGTK() +- blogtk.main() ++ try: ++ blogtk = BloGTK() ++ blogtk.main() ++ except KeyboardInterrupt: ++ sys.exit(1) --- blogtk-1.1.orig/debian/patches/zz-fix-deprecated-configparser-options.patch +++ blogtk-1.1/debian/patches/zz-fix-deprecated-configparser-options.patch @@ -0,0 +1,145 @@ +diff -Nur -x '*.orig' -x '*~' blogtk-1.1/src/BloGTK.py blogtk-1.1.new/src/BloGTK.py +--- blogtk-1.1/src/BloGTK.py 2009-06-21 13:55:57.112049500 +0100 ++++ blogtk-1.1.new/src/BloGTK.py 2009-06-21 13:56:31.052031771 +0100 +@@ -317,7 +317,7 @@ + self.blogNameLabel = self.mainGlade.get_widget('blogNameLabel') + + if self.blogNameLabel.get_text() == "": +- self.blogNameLabel.set_text("Default") ++ self.blogNameLabel.set_text("Default Server") + else: + pass + +@@ -333,7 +333,7 @@ + + for item in self.sections: + if item == "server": +- self.conf.add_section("Default") ++ self.conf.add_section("Default Server") + self.url = self.conf.get("server", "server") + self.user = self.conf.get("server", "user") + self.passwd = self.conf.get("server", "pass") +@@ -345,11 +345,11 @@ + except ConfigParser.NoOptionError, error: + self.font = "Sans 12" + +- self.conf.set("Default", "server", self.url) +- self.conf.set("Default", "user", self.user) +- self.conf.set("Default", "pass", self.passwd) +- self.conf.set("Default", "system", self.system) +- self.conf.set("Default", "font", self.font) ++ self.conf.set("Default Server", "server", self.url) ++ self.conf.set("Default Server", "user", self.user) ++ self.conf.set("Default Server", "pass", self.passwd) ++ self.conf.set("Default Server", "system", self.system) ++ self.conf.set("Default Server", "font", self.font) + + self.conf.remove_option("server", "server") + self.conf.remove_option("server", "user") +@@ -399,9 +399,9 @@ + # set yet. Therefore we'll now have to set them to their default values. + + try: +- self.useUTF = self.conf.get("Default", "useUTF") +- self.defaultPublish = self.conf.get("Default", "defaultPublish") +- self.retrievalNumber = self.conf.get("Default", "retrievalNumber") ++ self.useUTF = self.conf.get("Default Server", "useUTF") ++ self.defaultPublish = self.conf.get("Default Server", "defaultPublish") ++ self.retrievalNumber = self.conf.get("Default Server", "retrievalNumber") + + if self.defaultPublish == "1": + self.publishCheck.set_active(True) +@@ -412,9 +412,9 @@ + + print "Creating general settings configuration..." + +- self.conf.set("Default", "useUTF", "0") +- self.conf.set("Default", "defaultPublish", "0") +- self.conf.set("Default", "retrievalNumber", "10") ++ self.conf.set("Default Server", "useUTF", "0") ++ self.conf.set("Default Server", "defaultPublish", "0") ++ self.conf.set("Default Server", "retrievalNumber", "10") + conf_file = open(self.configDir + "/BloGTK.conf", 'w+') + self.conf.write(conf_file) + conf_file.close() +diff -Nur -x '*.orig' -x '*~' blogtk-1.1/src/config.py blogtk-1.1.new/src/config.py +--- blogtk-1.1/src/config.py 2009-06-21 13:55:57.072026884 +0100 ++++ blogtk-1.1.new/src/config.py 2009-06-21 13:56:38.244026847 +0100 +@@ -85,18 +85,18 @@ + self.parser = ConfigParser.ConfigParser() + self.file = open(self.configFile, "w") + +- self.parser.add_section("Default") ++ self.parser.add_section("Default Server") + self.parser.write(self.file) + +- self.parser.set("Default", "server", "http://www.yoursite.com/blog/blog.cgi") +- self.parser.set("Default", "user", "username") +- self.parser.set("Default", "pass", "password") +- self.parser.set("Default", "system", "blogger") +- self.parser.set("Default", "font", "Sans 12") ++ self.parser.set("Default Server", "server", "http://www.yoursite.com/blog/blog.cgi") ++ self.parser.set("Default Server", "user", "username") ++ self.parser.set("Default Server", "pass", "password") ++ self.parser.set("Default Server", "system", "blogger") ++ self.parser.set("Default Server", "font", "Sans 12") + +- self.parser.set("Default", "Publish", "FALSE") +- self.parser.set("Default", "useUTF", "0") +- self.parser.set("Default", "retrievalNumber", "10") ++ self.parser.set("Default Server", "Publish", "FALSE") ++ self.parser.set("Default Server", "useUTF", "0") ++ self.parser.set("Default Server", "retrievalNumber", "10") + + self.parser.write(self.file) + self.blogs = self.parser.sections() +@@ -169,9 +169,9 @@ + self.system = self.parser.get(self.section, "system") + + # 0.9 - We need to pull our General Settings from the config as well... +- self.defaultPublish = self.parser.get("Default", "defaultPublish") +- self.useUTF = self.parser.get("Default", "useutf") +- self.retrievalNumber = self.parser.get("Default", "retrievalNumber") ++ self.defaultPublish = self.parser.get("Default Server", "defaultPublish") ++ self.useUTF = self.parser.get("Default Server", "useutf") ++ self.retrievalNumber = self.parser.get("Default Server", "retrievalNumber") + + except ConfigParser.NoSectionError: + pass +@@ -292,22 +292,22 @@ + # 0.9 - Each time we save the form, we want to also save our general settings as well... + + if self.defaultPublishCheck.get_active() == True: +- self.parser.set("Default", "defaultPublish", "1") ++ self.parser.set("Default Server", "defaultPublish", "1") + self.defaultMainCheck.set_active(True) + else: +- self.parser.set("Default", "defaultPublish", "0") ++ self.parser.set("Default Server", "defaultPublish", "0") + self.defaultMainCheck.set_active(False) + + if self.useUTF8Check.get_active() == True: +- self.parser.set("Default", "useUTF", "1") ++ self.parser.set("Default Server", "useUTF", "1") + else: +- self.parser.set("Default", "useUTF", "0") ++ self.parser.set("Default Server", "useUTF", "0") + + number = self.retrievalSpin.get_value() + + num_string = str(number) + +- self.parser.set("Default", "retrievalNumber", num_string) ++ self.parser.set("Default Server", "retrievalNumber", num_string) + + self.writeFile = open(self.configFile, "w") + self.parser.write(self.writeFile) +@@ -325,7 +325,7 @@ + + self.section = self.accountsCombo.entry.get_text() + +- if self.section == "Default": ++ if self.section == "Default Server": + errDialog = gtk.Dialog(title="Error", parent=self.accountsWindow, flags=0) + button2 = gtk.Button(stock=gtk.STOCK_OK) + button2.connect_object("clicked", gtk.Widget.destroy, errDialog) --- blogtk-1.1.orig/debian/patches/fix-shabangs.patch +++ blogtk-1.1/debian/patches/fix-shabangs.patch @@ -0,0 +1,63 @@ +diff -Nur blogtk-1.1/src/BloGTK.py blogtk-1.1.new/src/BloGTK.py +--- blogtk-1.1/src/BloGTK.py 2005-01-10 04:51:05.000000000 +0100 ++++ blogtk-1.1.new/src/BloGTK.py 2008-02-29 23:02:55.000000000 +0100 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python + + # BloGTK Version 1.1 + # (C)2004 Jay Reding +diff -Nur blogtk-1.1/src/config.py blogtk-1.1.new/src/config.py +--- blogtk-1.1/src/config.py 2008-02-29 23:02:28.000000000 +0100 ++++ blogtk-1.1.new/src/config.py 2008-02-29 23:02:51.000000000 +0100 +@@ -1,5 +1,3 @@ +-#!/usr/bin/env python +- + # BloGTK Version 1.0 + # Configuration Routines - config.py + # (C)2004 Jay Reding +diff -Nur blogtk-1.1/src/customtags.py blogtk-1.1.new/src/customtags.py +--- blogtk-1.1/src/customtags.py 2005-01-08 01:25:54.000000000 +0100 ++++ blogtk-1.1.new/src/customtags.py 2008-02-29 23:02:48.000000000 +0100 +@@ -1,5 +1,3 @@ +-#!/usr/bin/env python +- + # BloGTK Version 1.0 + # Custom Tags Routines - customtags.py + # (C)2004 Jay Reding +diff -Nur blogtk-1.1/src/post.py blogtk-1.1.new/src/post.py +--- blogtk-1.1/src/post.py 2005-01-10 04:48:40.000000000 +0100 ++++ blogtk-1.1.new/src/post.py 2008-02-29 23:02:46.000000000 +0100 +@@ -1,5 +1,3 @@ +-#!/usr/bin/env python +- + # BloGTK Version 1.0 + # Entry Posting/Editing Routines - post.py + # (C)2004 Jay Reding +diff -Nur blogtk-1.1/src/preview.py blogtk-1.1.new/src/preview.py +--- blogtk-1.1/src/preview.py 2004-03-31 00:00:54.000000000 +0200 ++++ blogtk-1.1.new/src/preview.py 2008-02-29 23:02:42.000000000 +0100 +@@ -1,5 +1,3 @@ +-#!/usr/bin/env python +- + # BloGTK Version 1.0 + # Preview System Routines - preview.py + # (C)2004 Jay Reding +diff -Nur blogtk-1.1/src/proxy.py blogtk-1.1.new/src/proxy.py +--- blogtk-1.1/src/proxy.py 2004-03-04 23:33:43.000000000 +0100 ++++ blogtk-1.1.new/src/proxy.py 2008-02-29 23:02:39.000000000 +0100 +@@ -1,5 +1,3 @@ +-#!/usr/bin/env python +- + # 0.9 - This code has been sent by Michael Twomey and adds support for basic HTTP proxies in BloGTK. + + from xmlrpclib import Transport, Server +diff -Nur blogtk-1.1/src/spellcheck.py blogtk-1.1.new/src/spellcheck.py +--- blogtk-1.1/src/spellcheck.py 2005-01-08 07:18:29.000000000 +0100 ++++ blogtk-1.1.new/src/spellcheck.py 2008-02-29 23:02:36.000000000 +0100 +@@ -1,5 +1,3 @@ +-#!/usr/bin/env python +- + # BloGTK Version 1.0 + # Spell Check Routines - spellcheck.py + # (C)2004 Jay Reding --- blogtk-1.1.orig/debian/patches/fix-deprecated-true-false.patch +++ blogtk-1.1/debian/patches/fix-deprecated-true-false.patch @@ -0,0 +1,475 @@ +diff -Nur blogtk-1.1/src/BloGTK.py blogtk-1.1.new/src/BloGTK.py +--- blogtk-1.1/src/BloGTK.py 2008-02-29 23:19:58.000000000 +0100 ++++ blogtk-1.1.new/src/BloGTK.py 2008-02-29 23:39:07.000000000 +0100 +@@ -42,7 +42,7 @@ + class BloGTK: + + def delete_event(self, widget, event, data=None): +- return gtk.FALSE ++ return False + + def destroy(self, widget, data=None): + gtk.main_quit() +@@ -55,27 +55,27 @@ + + # 0.3 - When we load the prefs we want to ensure that the user must + # reconnect with the new prefs before posting. +- self.postButton.set_sensitive(gtk.FALSE) ++ self.postButton.set_sensitive(False) + + # 0.9 - We also ensure that the title entry must be explictly reactivated + # for MetaWeblog or MT users. +- self.titleEntry.set_sensitive(gtk.FALSE) ++ self.titleEntry.set_sensitive(False) + + # 0.9 - We should also make it clear that when you pop up the preferences + # window you disconnect from the server. + self.mainStatus.push(1, "Disconnected from server. Use File/Connect to re-connect") + + # 0.95 - And you can't retrieve a post list while disconnected... DUH! +- self.recallMenuOption.set_sensitive(gtk.FALSE) ++ self.recallMenuOption.set_sensitive(False) + # 0.95 - We also need to disable our other entry systems. +- self.titleEntry.set_sensitive(gtk.FALSE) +- self.extendedView.set_sensitive(gtk.FALSE) +- self.excerptView.set_sensitive(gtk.FALSE) +- self.commentsCheck.set_sensitive(gtk.FALSE) +- self.pingsCheck.set_sensitive(gtk.FALSE) +- self.breaksCheck.set_sensitive(gtk.FALSE) +- self.keywordEntry.set_sensitive(gtk.FALSE) +- self.trackbackEntry.set_sensitive(gtk.FALSE) ++ self.titleEntry.set_sensitive(False) ++ self.extendedView.set_sensitive(False) ++ self.excerptView.set_sensitive(False) ++ self.commentsCheck.set_sensitive(False) ++ self.pingsCheck.set_sensitive(False) ++ self.breaksCheck.set_sensitive(False) ++ self.keywordEntry.set_sensitive(False) ++ self.trackbackEntry.set_sensitive(False) + + def __init__(self): + +@@ -153,7 +153,7 @@ + + # 0.4 - We don't want the ability to edit posts unless we've already connected + # to a server. +- self.editPostsItem.set_sensitive(gtk.FALSE) ++ self.editPostsItem.set_sensitive(False) + + # 0.4 - We want to set the hidden postIDLabel widget to a value of 'New' for all + # new posts. +@@ -203,8 +203,8 @@ + self.toolbar1 = self.mainGlade.get_widget('toolbar1') + self.toolbar2 = self.mainGlade.get_widget('toolbar2') + +- self.toolbar1.set_tooltips(gtk.TRUE) +- self.toolbar2.set_tooltips(gtk.TRUE) ++ self.toolbar1.set_tooltips(True) ++ self.toolbar2.set_tooltips(True) + + # 0.5 - We need to initialize our file pointer. + self.file = "" +@@ -224,11 +224,11 @@ + # 0.9-3 - Now we need to initiate our List Store... + self.model = gtk.ListStore(gobject.TYPE_STRING, gobject.TYPE_STRING) + self.treeView.set_model(self.model) +- self.treeView.set_headers_visible(gtk.TRUE) ++ self.treeView.set_headers_visible(True) + + renderer=gtk.CellRendererText() + column=gtk.TreeViewColumn("Post Title",renderer, text=0) +- column.set_resizable(gtk.TRUE) ++ column.set_resizable(True) + self.treeView.append_column(column) + + self.treeView.show() +@@ -404,7 +404,7 @@ + self.retrievalNumber = self.conf.get("Default", "retrievalNumber") + + if self.defaultPublish == "1": +- self.publishCheck.set_active(gtk.TRUE) ++ self.publishCheck.set_active(True) + else: + pass + +@@ -436,7 +436,7 @@ + + def hideAbout(self, widget, foo): + self.aboutDialog.hide() +- return gtk.TRUE ++ return True + + def confirmClear(self, widget): + self.clearDialog = self.mainGlade.get_widget('confirmClear') +@@ -489,7 +489,7 @@ + def hideWindow(self, widget, foo): + # Strike me down, and I'll become invisible like Obi-Wan did... + self.clearDialog.hide() +- return gtk.TRUE ++ return True + + def getBlogs(self, widget): + +@@ -507,8 +507,8 @@ + self.blogCombo.set_popdown_strings(blogName) + + # 0.4 - We want to enable those hidden options now... +- self.postButton.set_sensitive(gtk.TRUE) +- self.editPostsItem.set_sensitive(gtk.TRUE) ++ self.postButton.set_sensitive(True) ++ self.editPostsItem.set_sensitive(True) + + self.mainStatus.push(1, "Connected to server at " + self.url) + +@@ -523,23 +523,23 @@ + # 0.95 - We can also activate our other options + + if self.system == "mt": +- self.titleEntry.set_sensitive(gtk.TRUE) +- self.extendedView.set_sensitive(gtk.TRUE) +- self.excerptView.set_sensitive(gtk.TRUE) +- self.commentsCheck.set_sensitive(gtk.TRUE) +- self.pingsCheck.set_sensitive(gtk.TRUE) +- self.breaksCheck.set_sensitive(gtk.TRUE) +- self.keywordEntry.set_sensitive(gtk.TRUE) +- self.trackbackEntry.set_sensitive(gtk.TRUE) ++ self.titleEntry.set_sensitive(True) ++ self.extendedView.set_sensitive(True) ++ self.excerptView.set_sensitive(True) ++ self.commentsCheck.set_sensitive(True) ++ self.pingsCheck.set_sensitive(True) ++ self.breaksCheck.set_sensitive(True) ++ self.keywordEntry.set_sensitive(True) ++ self.trackbackEntry.set_sensitive(True) + elif self.system == "metaweblog": +- self.titleEntry.set_sensitive(gtk.TRUE) +- self.extendedView.set_sensitive(gtk.TRUE) +- self.excerptView.set_sensitive(gtk.TRUE) ++ self.titleEntry.set_sensitive(True) ++ self.extendedView.set_sensitive(True) ++ self.excerptView.set_sensitive(True) + else: + pass + + # 0.95 - We can now also activate our option to edit/delete posts... +- self.recallMenuOption.set_sensitive(gtk.TRUE) ++ self.recallMenuOption.set_sensitive(True) + + def blogCheck(self, widget, foo): + +@@ -637,17 +637,17 @@ + keywords = self.keywordEntry.get_text() + trackbackURLS = self.trackbackEntry.get_text() + +- if self.breaksCheck.get_active() == gtk.TRUE: ++ if self.breaksCheck.get_active() == True: + breaks = "1" + else: + breaks = "0" + +- if self.commentsCheck.get_active() == gtk.TRUE: ++ if self.commentsCheck.get_active() == True: + commentsAllow = "1" + else: + commentsAllow = "0" + +- if self.pingsCheck.get_active() == gtk.TRUE: ++ if self.pingsCheck.get_active() == True: + pingsAllow = "1" + else: + pingsAllow = "0" +@@ -695,7 +695,7 @@ + def hidePostsWin(self, widget, foo): + self.model.clear() + self.postsWindow.hide() +- return gtk.TRUE ++ return True + + ### BEGIN TOOLBAR TAG INSERTION CODE ### + +@@ -884,7 +884,7 @@ + + def openHide(self, widget, foo): + self.openDialog.hide() +- return gtk.TRUE ++ return True + + # 0.5 - This is where we save our posts to an arbitrary file. + +@@ -939,7 +939,7 @@ + self.overwriteDialog.hide() + + self.saveDialog.hide() +- return gtk.TRUE ++ return True + + def writeFile(self, widget, foo): + +@@ -978,7 +978,7 @@ + + def saveHide(self, widget, foo): + self.saveDialog.hide() +- return gtk.TRUE ++ return True + + # 0.6 - This is where we call our new custom tag handing functions. + def custTags(self, widget): +@@ -1103,7 +1103,7 @@ + + def linksHide(self, widget, foo): + self.linkDialog.hide() +- return gtk.TRUE ++ return True + + #0.6 - These functions are for the image insertion dialog. + +@@ -1154,7 +1154,7 @@ + + def imageHide(self, widget, foo): + self.imageDialog.hide() +- return gtk.TRUE ++ return True + + # 0.6 - These function control inserting the table tags. + def showTableDialog(self, widget): +@@ -1218,7 +1218,7 @@ + + def tableHide(self, widget, foo): + self.tableDialog.hide() +- return gtk.TRUE ++ return True + + def callPreview(self, widget, foo, page): + +diff -Nur blogtk-1.1/src/config.py blogtk-1.1.new/src/config.py +--- blogtk-1.1/src/config.py 2008-02-29 23:19:59.000000000 +0100 ++++ blogtk-1.1.new/src/config.py 2008-02-29 23:39:07.000000000 +0100 +@@ -183,23 +183,23 @@ + self.blogPassEntry.set_text(self.passwd) + + if self.system == "mt": +- self.blogRadioMT.set_active(gtk.TRUE) ++ self.blogRadioMT.set_active(True) + if self.system == "blogger": +- self.blogRadioBlogger.set_active(gtk.TRUE) ++ self.blogRadioBlogger.set_active(True) + if self.system == "metaweblog": +- self.blogRadioMW.set_active(gtk.TRUE) ++ self.blogRadioMW.set_active(True) + + if self.defaultPublish == "1": +- self.defaultPublishCheck.set_active(gtk.TRUE) ++ self.defaultPublishCheck.set_active(True) + if self.defaultPublish == "0": +- self.defaultPublishCheck.set_active(gtk.FALSE) ++ self.defaultPublishCheck.set_active(False) + else: + pass + + if self.useUTF == "1": +- self.useUTF8Check.set_active(gtk.TRUE) ++ self.useUTF8Check.set_active(True) + else: +- self.useUTF8Check.set_active(gtk.FALSE) ++ self.useUTF8Check.set_active(False) + + number = float(self.retrievalNumber) + +@@ -227,11 +227,11 @@ + errDialog = gtk.Dialog(title="Error", parent=self.newAccountDialog, flags=0) + button2 = gtk.Button(stock=gtk.STOCK_OK) + button2.connect_object("clicked", gtk.Widget.destroy, errDialog) +- errDialog.action_area.pack_start(button2, gtk.TRUE, gtk.TRUE, 0) ++ errDialog.action_area.pack_start(button2, True, True, 0) + button2.show() + + errLabel = gtk.Label("The name 'server' is reserved. Please select another.") +- errDialog.vbox.pack_start(errLabel, gtk.TRUE, gtk.TRUE, 2) ++ errDialog.vbox.pack_start(errLabel, True, True, 2) + + errLabel.show() + errDialog.show() +@@ -279,25 +279,25 @@ + self.parser.set(self.section, "pass", passwd) + self.parser.set(self.section, "font", font) + +- if self.blogRadioMT.get_active() == gtk.TRUE: ++ if self.blogRadioMT.get_active() == True: + self.system = "mt" +- if self.blogRadioBlogger.get_active() == gtk.TRUE: ++ if self.blogRadioBlogger.get_active() == True: + self.system = "blogger" +- if self.blogRadioMW.get_active() == gtk.TRUE: ++ if self.blogRadioMW.get_active() == True: + self.system = "metaweblog" + + self.parser.set(self.section, "system", self.system) + + # 0.9 - Each time we save the form, we want to also save our general settings as well... + +- if self.defaultPublishCheck.get_active() == gtk.TRUE: ++ if self.defaultPublishCheck.get_active() == True: + self.parser.set("Default", "defaultPublish", "1") +- self.defaultMainCheck.set_active(gtk.TRUE) ++ self.defaultMainCheck.set_active(True) + else: + self.parser.set("Default", "defaultPublish", "0") +- self.defaultMainCheck.set_active(gtk.FALSE) ++ self.defaultMainCheck.set_active(False) + +- if self.useUTF8Check.get_active() == gtk.TRUE: ++ if self.useUTF8Check.get_active() == True: + self.parser.set("Default", "useUTF", "1") + else: + self.parser.set("Default", "useUTF", "0") +@@ -328,11 +328,11 @@ + errDialog = gtk.Dialog(title="Error", parent=self.accountsWindow, flags=0) + button2 = gtk.Button(stock=gtk.STOCK_OK) + button2.connect_object("clicked", gtk.Widget.destroy, errDialog) +- errDialog.action_area.pack_start(button2, gtk.TRUE, gtk.TRUE, 0) ++ errDialog.action_area.pack_start(button2, True, True, 0) + button2.show() + + errLabel = gtk.Label("You cannot delete the default account") +- errDialog.vbox.pack_start(errLabel, gtk.TRUE, gtk.TRUE, 2) ++ errDialog.vbox.pack_start(errLabel, True, True, 2) + + errLabel.show() + errDialog.show() +@@ -437,12 +437,12 @@ + + def toggleProxyEntries(self, widget): + +- if self.proxyButton_Custom.get_active() == gtk.TRUE: +- self.proxyAddressEntry.set_sensitive(gtk.TRUE) +- self.proxyPortEntry.set_sensitive(gtk.TRUE) +- elif self.proxyButton_Custom.get_active() == gtk.FALSE: +- self.proxyAddressEntry.set_sensitive(gtk.FALSE) +- self.proxyPortEntry.set_sensitive(gtk.FALSE) ++ if self.proxyButton_Custom.get_active() == True: ++ self.proxyAddressEntry.set_sensitive(True) ++ self.proxyPortEntry.set_sensitive(True) ++ elif self.proxyButton_Custom.get_active() == False: ++ self.proxyAddressEntry.set_sensitive(False) ++ self.proxyPortEntry.set_sensitive(False) + + def fillProxyForm(self, foo, bar): + +@@ -454,22 +454,22 @@ + self.proxyPortEntry.set_text(port) + + if option == "none": +- self.proxyButton_None.set_active(gtk.TRUE) ++ self.proxyButton_None.set_active(True) + if option == "system": +- self.proxyButton_System.set_active(gtk.TRUE) ++ self.proxyButton_System.set_active(True) + if option == "custom": +- self.proxyButton_Custom.set_active(gtk.TRUE) ++ self.proxyButton_Custom.set_active(True) + + def saveProxyData(self, foo, bar): + + host = self.proxyAddressEntry.get_text() + port = self.proxyPortEntry.get_text() + +- if self.proxyButton_System.get_active() == gtk.TRUE: ++ if self.proxyButton_System.get_active() == True: + option = "system" +- if self.proxyButton_Custom.get_active() == gtk.TRUE: ++ if self.proxyButton_Custom.get_active() == True: + option = "custom" +- if self.proxyButton_None.get_active() == gtk.TRUE: ++ if self.proxyButton_None.get_active() == True: + option = "none" + + self.proxyParser = ConfigParser.ConfigParser() +@@ -487,4 +487,4 @@ + def windowHider(self, widget, foo): + # Strike me down, and I'll become invisible like Obi-Wan did... + widget.hide() +- return gtk.TRUE ++ return True +diff -Nur blogtk-1.1/src/customtags.py blogtk-1.1.new/src/customtags.py +--- blogtk-1.1/src/customtags.py 2008-02-29 23:19:58.000000000 +0100 ++++ blogtk-1.1.new/src/customtags.py 2008-02-29 23:39:07.000000000 +0100 +@@ -50,7 +50,7 @@ + def windowHider(widget, foo): + # Strike me down, and I'll become invisible like Obi-Wan did... + widget.hide() +- return gtk.TRUE ++ return True + + def populateWindow(widget, foo, mainGlade): + tagsEntry = mainGlade.get_widget("tagsEntry") +diff -Nur blogtk-1.1/src/post.py blogtk-1.1.new/src/post.py +--- blogtk-1.1/src/post.py 2008-02-29 23:19:58.000000000 +0100 ++++ blogtk-1.1.new/src/post.py 2008-02-29 23:39:07.000000000 +0100 +@@ -178,11 +178,11 @@ + postDialog = gtk.Dialog(title="Entry Posted", parent=mainWindow, flags=0) + button2 = gtk.Button(stock=gtk.STOCK_OK) + button2.connect_object("clicked", gtk.Widget.destroy, postDialog) +- postDialog.action_area.pack_start(button2, gtk.TRUE, gtk.TRUE, 0) ++ postDialog.action_area.pack_start(button2, True, True, 0) + button2.show() + + postLabel = gtk.Label("Entry Posted. ID = " + post) +- postDialog.vbox.pack_start(postLabel, gtk.TRUE, gtk.TRUE, 2) ++ postDialog.vbox.pack_start(postLabel, True, True, 2) + + postLabel.show() + postDialog.show() +@@ -766,11 +766,11 @@ + postDialog = gtk.Dialog(title="Entry Updated", parent=mainWindow, flags=0) + button2 = gtk.Button(stock=gtk.STOCK_OK) + button2.connect_object("clicked", gtk.Widget.destroy, postDialog) +- postDialog.action_area.pack_start(button2, gtk.TRUE, gtk.TRUE, 0) ++ postDialog.action_area.pack_start(button2, True, True, 0) + button2.show() + + postLabel = gtk.Label("Your Entry Has Been Successfully Updated") +- postDialog.vbox.pack_start(postLabel, gtk.TRUE, gtk.TRUE, 2) ++ postDialog.vbox.pack_start(postLabel, True, True, 2) + + postLabel.show() + postDialog.show() +diff -Nur blogtk-1.1/src/spellcheck.py blogtk-1.1.new/src/spellcheck.py +--- blogtk-1.1/src/spellcheck.py 2008-02-29 23:19:58.000000000 +0100 ++++ blogtk-1.1.new/src/spellcheck.py 2008-02-29 23:39:07.000000000 +0100 +@@ -123,11 +123,11 @@ + errDialog = gtk.Dialog(title="Spell Check", parent=self.spellWindow, flags=0) + button2 = gtk.Button(stock=gtk.STOCK_OK) + button2.connect_object("clicked", gtk.Widget.destroy, errDialog) +- errDialog.action_area.pack_start(button2, gtk.TRUE, gtk.TRUE, 0) ++ errDialog.action_area.pack_start(button2, True, True, 0) + button2.show() + + errLabel = gtk.Label("No misspelled words found.") +- errDialog.vbox.pack_start(errLabel, gtk.TRUE, gtk.TRUE, 2) ++ errDialog.vbox.pack_start(errLabel, True, True, 2) + + errLabel.show() + errDialog.show() +@@ -197,11 +197,11 @@ + errDialog = gtk.Dialog(title="Spell Check", parent=None, flags=0) + button2 = gtk.Button(stock=gtk.STOCK_OK) + button2.connect_object("clicked", gtk.Widget.destroy, errDialog) +- errDialog.action_area.pack_start(button2, gtk.TRUE, gtk.TRUE, 0) ++ errDialog.action_area.pack_start(button2, True, True, 0) + button2.show() + + errLabel = gtk.Label("Spell Check Complete.") +- errDialog.vbox.pack_start(errLabel, gtk.TRUE, gtk.TRUE, 2) ++ errDialog.vbox.pack_start(errLabel, True, True, 2) + errLabel.show() + errDialog.show() + +@@ -222,7 +222,7 @@ + def windowHider(self, widget, foo): + # I'm outta here! + widget.hide() +- return gtk.FALSE ++ return False + + def setMark(self, wordToMark): + # Patch: This function is basically the old code just implemented as a function --- blogtk-1.1.orig/debian/patches/fix-python25-crash.patch +++ blogtk-1.1/debian/patches/fix-python25-crash.patch @@ -0,0 +1,18 @@ +# Fix a crash with python2.4 +# Thanks to Simon Ochsenreither +# +# See Ubuntu Bug #196813 for more information. + +diff -Nur blogtk-1.1/src/config.py blogtk-1.1.new/src/config.py +--- blogtk-1.1/src/config.py 2008-02-29 21:10:16.000000000 +0100 ++++ blogtk-1.1.new/src/config.py 2008-02-29 21:12:42.000000000 +0100 +@@ -274,6 +274,9 @@ + passwd = self.blogPassEntry.get_text() + font = self.fontEntry.get_text() + ++ if not (URL.startswith("http://") or URL.startswith("https://")): ++ URL = "http://" + URL ++ + self.parser.set(self.section, "server", URL) + self.parser.set(self.section, "user", user) + self.parser.set(self.section, "pass", passwd)