[Python-apps-commits] r11597 - in packages/whyteboard/trunk/debian (4 files)
sramacher at users.alioth.debian.org
sramacher at users.alioth.debian.org
Sat Nov 22 15:31:18 UTC 2014
Date: Saturday, November 22, 2014 @ 15:31:17
Author: sramacher
Revision: 11597
Apply 0.41.1-4.1 NMU diff
Added:
packages/whyteboard/trunk/debian/patches/01_wxpy3.0-compat.patch
Modified:
packages/whyteboard/trunk/debian/changelog
packages/whyteboard/trunk/debian/control
packages/whyteboard/trunk/debian/patches/series
Modified: packages/whyteboard/trunk/debian/changelog
===================================================================
--- packages/whyteboard/trunk/debian/changelog 2014-11-22 12:01:07 UTC (rev 11596)
+++ packages/whyteboard/trunk/debian/changelog 2014-11-22 15:31:17 UTC (rev 11597)
@@ -4,6 +4,16 @@
-- Jakub Wilk <jwilk at debian.org> Sun, 05 May 2013 18:10:36 +0200
+whyteboard (0.41.1-4.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Update to depend on python-wxgtk3.0 rather than python-wxgtk2.8
+ (Closes: #758204):
+ + New patch: 01_wxpy3.0-compat.patch
+ * Add dependency on python-wxgtk-media3.0. (Closes: #725711)
+
+ -- Olly Betts <olly at survex.com> Fri, 29 Aug 2014 01:03:39 +0000
+
whyteboard (0.41.1-4) unstable; urgency=low
* Add python-setuptools to Build-Depends. (Closes: #634411)
Modified: packages/whyteboard/trunk/debian/control
===================================================================
--- packages/whyteboard/trunk/debian/control 2014-11-22 12:01:07 UTC (rev 11596)
+++ packages/whyteboard/trunk/debian/control 2014-11-22 15:31:17 UTC (rev 11597)
@@ -12,7 +12,7 @@
Package: whyteboard
Architecture: all
-Depends: ${python:Depends}, ${misc:Depends}, python-wxgtk2.8
+Depends: ${python:Depends}, ${misc:Depends}, python-wxgtk3.0, python-wxgtk-media3.0
Description: overlay painting and annotation application
Whyteboard is a free painting application for Linux, Windows and Mac. It is
suited towards creating visual presentations and for overlaying PDF images
Added: packages/whyteboard/trunk/debian/patches/01_wxpy3.0-compat.patch
===================================================================
--- packages/whyteboard/trunk/debian/patches/01_wxpy3.0-compat.patch (rev 0)
+++ packages/whyteboard/trunk/debian/patches/01_wxpy3.0-compat.patch 2014-11-22 15:31:17 UTC (rev 11597)
@@ -0,0 +1,107 @@
+Description: Fix to work with wxpython3.0
+Author: Olly Betts <olly at survex.com>
+Bug-Debian: http://bugs.debian.org/725711
+Forwarded: no
+Last-Update: 2014-08-15
+
+--- a/whyteboard/gui/frame.py
++++ b/whyteboard/gui/frame.py
+@@ -264,7 +264,7 @@
+ _file = _file.replace(u":", u"-").replace(u"/", u"-")
+
+ name = file_dialog(self, _("Save Whyteboard As..."),
+- wx.SAVE | wx.OVERWRITE_PROMPT, wildcard, _dir, _file)
++ wx.FD_SAVE | wx.FD_OVERWRITE_PROMPT, wildcard, _dir, _file)
+ if name:
+ if not os.path.splitext(name)[1]: # no file extension
+ name += u'.wtbd'
+@@ -290,7 +290,7 @@
+
+ _dir = self.util.config.get('last_opened_dir') or u""
+
+- filename = file_dialog(self, _("Open file..."), wx.OPEN, wildcard, _dir)
++ filename = file_dialog(self, _("Open file..."), wx.FD_OPEN, wildcard, _dir)
+ self.open_file(filename)
+
+
+@@ -330,7 +330,7 @@
+ if not self.util.im_location:
+ return
+ filename = file_dialog(self, _("Export data to..."),
+- wx.SAVE | wx.OVERWRITE_PROMPT, u"PDF (*.pdf)|*.pdf")
++ wx.FD_SAVE | wx.FD_OVERWRITE_PROMPT, u"PDF (*.pdf)|*.pdf")
+
+ if filename:
+ ext = os.path.splitext(filename)[1]
+@@ -395,7 +395,7 @@
+ wildcard = _("Whyteboard Preference Files") + u" (*.pref)|*.pref"
+
+ filename = file_dialog(self, _("Export preferences to..."),
+- wx.SAVE | wx.OVERWRITE_PROMPT, wildcard)
++ wx.FD_SAVE | wx.FD_OVERWRITE_PROMPT, wildcard)
+ if filename:
+ if not os.path.splitext(filename)[1]:
+ filename += u".pref"
+@@ -409,7 +409,7 @@
+ """
+ wildcard = _("Whyteboard Preference Files") + u" (*.pref)|*.pref"
+
+- filename = file_dialog(self, _("Import Preferences From..."), wx.OPEN,
++ filename = file_dialog(self, _("Import Preferences From..."), wx.FD_OPEN,
+ wildcard, get_home_dir())
+
+ if filename:
+@@ -454,7 +454,7 @@
+ u"BMP (*.bmp)|*.bmp|TIFF (*.tiff)|*.tiff")
+
+ dlg = wx.FileDialog(self, _("Export data to..."),
+- style=wx.SAVE | wx.OVERWRITE_PROMPT, wildcard=wildcard)
++ style=wx.FD_SAVE | wx.FD_OVERWRITE_PROMPT, wildcard=wildcard)
+ if dlg.ShowModal() == wx.ID_OK:
+ filename = dlg.GetPath()
+ _name = os.path.splitext(filename)[1].replace(u".", u"")
+--- a/whyteboard/gui/panels.py
++++ b/whyteboard/gui/panels.py
+@@ -485,7 +485,7 @@
+ if self.directory:
+ _dir = self.directory
+
+- name = file_dialog(self, _("Choose a media file"), wx.OPEN, wildcard, _dir)
++ name = file_dialog(self, _("Choose a media file"), wx.FD_OPEN, wildcard, _dir)
+ if name:
+ self.do_load_file(name)
+
+@@ -1019,7 +1019,7 @@
+ dc.SelectObject(self.buffer)
+
+ gcdc = wx.GCDC(dc)
+- gcdc.SetBrush(wx.Brush(wx.Color(0, 0, 255, 50))) # light blue
++ gcdc.SetBrush(wx.Brush(wx.Colour(0, 0, 255, 50))) # light blue
+ gcdc.SetPen(wx.Pen((0, 0, 0), 1, wx.TRANSPARENT))
+ gcdc.DrawRectangle(0, 0, 150, 150)
+
+--- a/whyteboard/tools.py
++++ b/whyteboard/tools.py
+@@ -1785,7 +1785,7 @@
+ if (not replay and self.canvas.gui.util.config['bmp_select_transparent']
+ and meta.transparent):
+ dc = wx.GCDC(dc)
+- dc.SetBrush(wx.Brush(wx.Color(0, 0, 255, 50))) # light blue
++ dc.SetBrush(wx.Brush(wx.Colour(0, 0, 255, 50))) # light blue
+ dc.SetPen(wx.Pen(self.colour, self.thickness, wx.SOLID))
+ else:
+ dc.SetPen(wx.Pen(self.colour, self.thickness, wx.SHORT_DASH))
+--- a/whyteboard/gui/dialogs.py
++++ b/whyteboard/gui/dialogs.py
+@@ -1027,8 +1027,9 @@
+ self.list.SetStringItem(index, 2, str(shape.thickness))
+ self.list.SetStringItem(index, 3, str(shape.colour))
+ self.list.SetStringItem(index, 4, shape.properties())
+- self.list.Select(selection)
+- self.list.EnsureVisible(selection)
++ if selection != -1:
++ self.list.Select(selection)
++ self.list.EnsureVisible(selection)
+
+
+
Modified: packages/whyteboard/trunk/debian/patches/series
===================================================================
--- packages/whyteboard/trunk/debian/patches/series 2014-11-22 12:01:07 UTC (rev 11596)
+++ packages/whyteboard/trunk/debian/patches/series 2014-11-22 15:31:17 UTC (rev 11597)
@@ -1 +1,2 @@
00_setup_py
+01_wxpy3.0-compat.patch
More information about the Python-apps-commits
mailing list