[Python-apps-commits] r8690 - in packages/gedit-classbrowser3g/trunk/debian (3 files)

barcc-guest at users.alioth.debian.org barcc-guest at users.alioth.debian.org
Sat May 12 22:18:24 UTC 2012


    Date: Saturday, May 12, 2012 @ 22:18:22
  Author: barcc-guest
Revision: 8690

Added patch to move data from /usr/lib to /usr/share

Added:
  packages/gedit-classbrowser3g/trunk/debian/patches/
  packages/gedit-classbrowser3g/trunk/debian/patches/01-fix-data-dir.patch
  packages/gedit-classbrowser3g/trunk/debian/patches/series

Added: packages/gedit-classbrowser3g/trunk/debian/patches/01-fix-data-dir.patch
===================================================================
--- packages/gedit-classbrowser3g/trunk/debian/patches/01-fix-data-dir.patch	                        (rev 0)
+++ packages/gedit-classbrowser3g/trunk/debian/patches/01-fix-data-dir.patch	2012-05-12 22:18:22 UTC (rev 8690)
@@ -0,0 +1,61 @@
+Description: Move data from /usr/lib to /usr/share
+Forwarded: not-needed
+Author: B. Clausius <barcc at gmx.de>
+--- a/classbrowser3g/browserwidget.py
++++ b/classbrowser3g/browserwidget.py
+@@ -58,7 +58,7 @@
+         
+ class ClassBrowser (object):
+     """ A widget that resides in gedits side panel. """
+-    ui_file = os.path.join(os.path.dirname(__file__), 'browser.ui')
++    ui_file = os.path.join('/usr/share/gedit/plugins/classbrowser3g', 'browser.ui')
+ 
+     def __init__(self, window, options):
+         self.window = window
+--- a/classbrowser3g/options.py
++++ b/classbrowser3g/options.py
+@@ -33,7 +33,7 @@
+     __gsignals__ = {
+         'parser-changed': (GObject.SignalFlags.RUN_FIRST, None, ()),
+     }
+-    ui_file = os.path.join(os.path.dirname(__file__), 'options.ui')
++    ui_file = os.path.join('/usr/share/gedit/plugins/classbrowser3g', 'options.ui')
+     settings_schema = "org.gnome.gedit.plugins.classbrowser3g"
+     settings_schema_editor = 'org.gnome.gedit.preferences.editor'
+     
+@@ -50,7 +50,7 @@
+         self.settings.connect('changed::used-parsers', self.on_used_parsers_changed)
+         
+     def init_images(self):
+-        pixbufpath = os.path.join(os.path.dirname(__file__), "pixmaps")
++        pixbufpath = os.path.join('/usr/share/gedit/plugins/classbrowser3g', "pixmaps")
+         pixbufs = os.listdir(pixbufpath)
+         self.factory = Gtk.IconFactory()
+         for filename in pixbufs:
+--- a/setup.py
++++ b/setup.py
+@@ -38,10 +38,10 @@
+     data_files=[
+                 ('lib/gedit/plugins/', ['classbrowser3g.plugin']),
+                 ('lib/gedit/plugins/classbrowser3g/', glob('classbrowser3g/*.py')),
+-                ('lib/gedit/plugins/classbrowser3g/', glob('classbrowser3g/*.ui')),
++                ('share/gedit/plugins/classbrowser3g/', glob('classbrowser3g/*.ui')),
+                 ('lib/gedit/plugins/classbrowser3g/parsers/', glob('classbrowser3g/parsers/*.py')),
+-                ('lib/gedit/plugins/classbrowser3g/pixmaps/', glob('classbrowser3g/pixmaps/*.png')),
+-                ('lib/gedit/plugins/classbrowser3g/pixmaps/', glob('classbrowser3g/pixmaps/*.xpm')),
++                ('share/gedit/plugins/classbrowser3g/pixmaps/', glob('classbrowser3g/pixmaps/*.png')),
++                ('share/gedit/plugins/classbrowser3g/pixmaps/', glob('classbrowser3g/pixmaps/*.xpm')),
+                 ('share/glib-2.0/schemas/', glob('*.gschema.xml')),
+                ],
+     )
+--- a/classbrowser3g/__init__.py
++++ b/classbrowser3g/__init__.py
+@@ -50,7 +50,7 @@
+         # create the browser pane
+         self.classbrowser = ClassBrowser(self.window, self.options)
+         panel = self.window.get_side_panel()
+-        filename = os.path.join(os.path.dirname(__file__), "pixmaps", 'panel-icon.png')
++        filename = os.path.join('/usr/share/gedit/plugins/classbrowser3g', "pixmaps", 'panel-icon.png')
+         image = Gtk.Image.new_from_file(filename)
+         panel.add_item(self.classbrowser.widget, 'ClassBrowser3gPanel', 'Class Browser', image)
+         

Added: packages/gedit-classbrowser3g/trunk/debian/patches/series
===================================================================
--- packages/gedit-classbrowser3g/trunk/debian/patches/series	                        (rev 0)
+++ packages/gedit-classbrowser3g/trunk/debian/patches/series	2012-05-12 22:18:22 UTC (rev 8690)
@@ -0,0 +1 @@
+01-fix-data-dir.patch




More information about the Python-apps-commits mailing list