[Inteproxy-commits] r89 - in trunk: . inteproxy

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue May 8 15:57:42 CEST 2007


Author: bh
Date: 2007-05-08 15:57:42 +0200 (Tue, 08 May 2007)
New Revision: 89

Modified:
   trunk/ChangeLog
   trunk/inteproxy/gtkapp.py
   trunk/inteproxy/resources.py
Log:
* inteproxy/gtkapp.py (image_filename),
inteproxy/resources.py (image_filename): Moved from gtkapp to
resources


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-05-08 13:45:28 UTC (rev 88)
+++ trunk/ChangeLog	2007-05-08 13:57:42 UTC (rev 89)
@@ -1,5 +1,11 @@
 2007-05-08  Bernhard Herzog  <bh at intevation.de>
 
+	* inteproxy/gtkapp.py (image_filename),
+	inteproxy/resources.py (image_filename): Moved from gtkapp to
+	resources
+
+2007-05-08  Bernhard Herzog  <bh at intevation.de>
+
 	* inteproxy/gtkapp.py (InteProxyTextView.__init__): Add Tag "bold"
 	(InteProxyMainWindow.__init__): Rephrase the text in the main
 	window

Modified: trunk/inteproxy/gtkapp.py
===================================================================
--- trunk/inteproxy/gtkapp.py	2007-05-08 13:45:28 UTC (rev 88)
+++ trunk/inteproxy/gtkapp.py	2007-05-08 13:57:42 UTC (rev 89)
@@ -15,7 +15,7 @@
 
 import inteproxy.app
 import inteproxy.main
-from inteproxy.resources import gettext as _
+from inteproxy.resources import image_filename, gettext as _
 
 
 def run_password_dialog(title):
@@ -176,14 +176,7 @@
 </ui>"""
 
 
-def image_filename(basename):
-    """Returns the filename of image files bundled with InteProxy.
 
-    The function assumes that all image files are located in the
-    inteproxy package directory.  The parameter basename should be the
-    basename of the image file in that directory.
-    """
-    return os.path.join(os.path.dirname(__file__), basename)
 
 def load_image(basename):
     """Loads the image from a file given by basename and returns it as a pixbuf.

Modified: trunk/inteproxy/resources.py
===================================================================
--- trunk/inteproxy/resources.py	2007-05-08 13:45:28 UTC (rev 88)
+++ trunk/inteproxy/resources.py	2007-05-08 13:57:42 UTC (rev 89)
@@ -21,3 +21,13 @@
     t = py_gettext.translation("inteproxy", modir)
 
     return t.ugettext(message)
+
+
+def image_filename(basename):
+    """Returns the filename of image files bundled with InteProxy.
+
+    The function assumes that all image files are located in the
+    inteproxy package directory.  The parameter basename should be the
+    basename of the image file in that directory.
+    """
+    return os.path.join(os.path.dirname(__file__), basename)



More information about the Inteproxy-commits mailing list