debian/0000755000000000000000000000000012201520757007167 5ustar debian/source/0000755000000000000000000000000012201520757010467 5ustar debian/source/format0000644000000000000000000000001412201520757011675 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000220312201520757011117 0ustar This package was debianized by Cédric Delfosse on Sat, 17 Jul 2004 19:30:35 +0200. It was downloaded from http://wiki.github.com/amolenaar/gaphor Upstream Authors: Arjan Molenaar Jeroen Vloothuis wrobell Copyright: Copyright (C) 2009 Arjan Molenaar License: This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 dated June, 1991. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this package; if not, write to Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. debian/gaphor.install0000644000000000000000000000017012201520757012035 0ustar debian/gaphor.xpm usr/share/pixmaps gaphor/ui/*.xml /usr/share/gaphor gaphor/ui/pixmaps/*.png /usr/share/gaphor/pixmaps debian/gaphor.xpm0000644000000000000000000000462712201520757011206 0ustar /* XPM */ static char *gaphor[] = { /* columns rows colors chars-per-pixel */ "16 16 111 2", " c black", ". c #100E16", "X c #1F1714", "o c #271510", "O c #231E1C", "+ c #2B211B", "@ c #232439", "# c #28293D", "$ c #33333D", "% c #3F393B", "& c #2C2E50", "* c #473921", "= c #4F3747", "- c #67462B", "; c #6B4C2A", ": c #6B5139", "> c #7A5429", ", c #7D5A2A", "< c #524954", "1 c #53505C", "2 c #4A5073", "3 c #665E5E", "4 c #665D61", "5 c #626B7F", "6 c #6C6172", "7 c #796F65", "8 c #7F7179", "9 c #2A45A1", "0 c #294CB2", "q c #405483", "w c #5058AC", "e c #5D628F", "r c #6D719C", "t c #7B728C", "y c #797993", "u c #647AA1", "i c #6D7BB2", "p c #6979DA", "a c #56878E", "s c #6380BF", "d c #6A86B2", "f c #7693BD", "g c #7BA79F", "h c #6980D7", "j c #886C37", "k c #9C6426", "l c #9C7935", "z c #A2682D", "x c #A46639", "c c #9E5F45", "v c #827D87", "b c #807F88", "n c #8E8848", "m c #86856A", "M c #AD924C", "N c #B08C41", "B c #B3B16F", "V c #C49D3A", "C c #CB9D37", "Z c #C8A13A", "A c #D08A4B", "S c #C6A84E", "D c #D7B846", "F c #C5A575", "G c #C3B57A", "H c #EAD153", "J c #F0DB5C", "K c #F2DF5A", "L c #E7DE63", "P c #EFDD69", "I c #E8D877", "U c #F3E272", "Y c #F5E771", "T c #F2ED77", "R c #F6EE73", "E c #FEF964", "W c #FEFA74", "Q c #89888F", "! c #938F86", "~ c #979399", "^ c #8395AF", "/ c #9F93A5", "( c #9892B0", ") c #9FAA8C", "_ c #BEB782", "` c #B2AFB4", "' c #A2A6C8", "] c #B5B4C6", "[ c #BFBAC4", "{ c #B9BCD7", "} c #ADC6BA", "| c #B4CBB5", " . c #ACCAF6", ".. c #DEDAA8", "X. c #FAF284", "o. c #FBF78F", "O. c #CFCED4", "+. c #C3D7C0", "@. c #CDDCC0", "#. c #CDDAD3", "$. c #D1C3D3", "%. c #DFDEE4", "&. c #DBE2D5", "*. c #E0E1D4", "=. c #FBEDD6", "-. c #EBE4E8", ";. c #E8EFE4", ":. c #EFEEF3", ">. c #EEF2F7", ",. c #F7F7F8", "<. c None", /* pixels */ "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.", "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.", "<.<.<.<.<.<.<.<.<.<.r ' w p <.<.", "<.<.<.<.<.<.<.;.#.>.e # { h .<.", "<.<.<.<.<.*.| +.@.&.& b ] Q O.-.", "<.<.<.$.u f a g } ) @ $ :.,.` ~ ", "<.<.% 5 ^ d 0 9 i T L n ! %.[ <.", "6 s . O _ B m ..o.W E W R G : <.", "2 q = F I X.Y J P U K H M k <.<.", "<.<.<.=.N S D V Z C l * X <.<.<.", "<.<.<.<.A - > , z ; + 7 <.<.<.<.", "<.<.<.<.<.<.j 8 x c o < ( / <.<.", "<.<.<.<.<.<.<.y 1 <.<.<.4 t <.<.", "<.<.<.<.<.<.<.3 v <.<.<.<.<.<.<.", "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.", "<.<.<.<.<.<.<.<.<.<.<.<.<.<.<.<." }; debian/gaphorconvert.10000644000000000000000000000460612201520757012140 0ustar '\" t .\" Title: GAPHOR .\" Author: Cédric Delfosse .\" Generator: DocBook XSL Stylesheets v1.76.1 .\" Date: july 17, 2004 .\" Manual: [FIXME: manual] .\" Source: [FIXME: source] .\" Language: English .\" .TH "GAPHORCONVERT" "1" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" gaphorconvert \- Gaphor UML diagram conversion tool .SH "SYNOPSIS" .PP \fBgaphorconvert\fP [ \fBoptions\fP ] file1 file2... .SH "DESCRIPTION" .PP This manual describes \fBgaphorconvert\fP command. .SH "OPTIONS" .IP "-h, --help" 4 Show help message and exit. .IP "-v, --verbose" 4 Verbose output. .IP "-u, --use-underscores" 4 Use underscores instead of spaces for output filenames. .IP "-d \fBdirectory\fP, --dir=\fBdirectory\fP" 4 Output to directory. .IP "-f \fBformat\fP, --format=\fBformat\fP" 4 Output file format, default is \fBpdf\fP. .IP "-r \fBregex\fP, --regex=\fBregex\fP" 4 Process diagrams with name matching \fBregex\fP regular experssion. Diagram name includes package name, regular expressions are case insensitive. .SH "AUTHOR" .PP This manual page was written by Dmitry Borodaenko for the Debian system (but may be used by others)\&. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation\&. .PP On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common\-licenses/GPL\&. .SH "COPYRIGHT" .br Copyright \(co 2008 Arjan Molenaar, \(co 2012 Dmitry Borodaenko .br debian/gaphor.10000644000000000000000000000442412201520757010535 0ustar '\" t .\" Title: GAPHOR .\" Author: Cédric Delfosse .\" Generator: DocBook XSL Stylesheets v1.76.1 .\" Date: july 17, 2004 .\" Manual: [FIXME: manual] .\" Source: [FIXME: source] .\" Language: English .\" .TH "GAPHOR" "1" "july 17, 2004" "[FIXME: source]" "[FIXME: manual]" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" gaphor \- UML modeling tool .SH "SYNOPSIS" .HP \w'\fBgaphor\fR\ 'u \fBgaphor\fR .SH "DESCRIPTION" .PP This manual page documents briefly the \fBgaphor\fR command\&. .PP This manual page was written for the Debian distribution because the original program does not have a manual page\&. .PP \fBgaphor\fR is an easy to use UML (Unified Modeling Language) modeling environment\&. It allows you to create UML diagrams for documentation and to assist you with design decisions\&. .SH "OPTIONS" .PP \fBgaphor\fR has no option\&. .SH "AUTHOR" .PP This manual page was written by Cédric Delfosse cedric@debian\&.org for the Debian system (but may be used by others)\&. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation\&. .PP On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common\-licenses/GPL\&. .SH "AUTHOR" .PP \fBCédric Delfosse\fR .RS 4 Author. .RE .SH "COPYRIGHT" .br Copyright \(co 2004 Cédric Delfosse .br debian/gaphor.desktop0000644000000000000000000000027512201520757012046 0ustar [Desktop Entry] Version=1.0 Name=Gaphor Comment=Gaphor Modeling Tool Exec=/usr/bin/gaphor Icon=gaphor Terminal=false Type=Application Categories=Application;Development; StartupNotify=true debian/docs0000644000000000000000000000001412201520757010035 0ustar NEWS README debian/changelog0000644000000000000000000002035412201520757011045 0ustar gaphor (0.17.2-1) unstable; urgency=low * New upstream release. * Updated Standards-Version to 3.9.4 (no changes). -- Dmitry Borodaenko Sat, 10 Aug 2013 12:33:53 -0700 gaphor (0.17.0-1) unstable; urgency=low * New maintainer. * New upstream release (Closes: #647539): - fix-actions-flow-lost.patch no longer needed - file save operations no longer stop working after starting process is terminated (Closes: #552122). * Add Build-Depends on all Depends. * Transition to dh_python2. * Add Vcs-* and Homepage fields to control. -- Dmitry Borodaenko Sun, 10 Jun 2012 13:17:26 +0300 gaphor (0.15.0-1.2) unstable; urgency=medium * Non-maintainer upload. * Urgency medium due to RC bug fix. * debian/patches/fix-actions-flow-lost.patch: Cherry-picked from upstream to fix control flow loss in Actions diagram (Closes: #605084). -- Theppitak Karoonboonyanan Tue, 14 Dec 2010 16:20:28 +0700 gaphor (0.15.0-1.1) unstable; urgency=low * Non-maintainer upload. * Adding missing dependency against python-simplegeneric (closes: #596882). -- Giovanni Mascellani Fri, 24 Sep 2010 00:44:41 +0200 gaphor (0.15.0-1) unstable; urgency=low * New upstream release (Closes: #550093) * Switch to dpkg-source 3.0 (quilt) format * Update debian/control - Depends on python-gaphas >= 0.6.0 - Set XS-Python-Version: >= 2.6 - Set Standards-Version to 3.9.1 * Prompt for confirmation when the user wants to quit (Closes: #353153) * No more use Python string exceptions (Closes: #585196) * New patch no-setuptools-git.patch so that setuptools doesn't try to download the setuptools-git Python package which is not packaged in Debian, and useless to build the package. -- Cédric Delfosse Fri, 06 Aug 2010 20:25:25 +0200 gaphor (0.13.1-1.1) unstable; urgency=low * Non-maintainer upload. * debian/rules - pass --install-layout=def to setup.py for Python 2.6 transition (Closes: #547818) - more robust comment-out strategy for zope.* requirements in eggs - fix name of clean-patched-stamp (ensure it gets removed upon clean) -- Stefano Zacchiroli Sat, 10 Oct 2009 22:57:23 +0200 gaphor (0.13.1-1) unstable; urgency=low * New upstream release * Depends on python-gobject (Closes: #525627) * Depends on python-gconf instead of python-gnome2 (Closes: #541583) * Update authors, copyright and license fields in debian/copyright * Standard-Version to 3.8.3 * debian/rules: no more use dh_desktop * Depends on python-zope.component instead of zope3 (Closes: #536417) -- Cédric Delfosse Sat, 12 Sep 2009 19:45:07 +0200 gaphor (0.13.0-1) unstable; urgency=low * New upstream release -- Cédric Delfosse Sat, 26 Jul 2008 15:05:27 +0200 gaphor (0.12.5-4) unstable; urgency=low * The package is now only available for Python 2.4, as it depends on zope3 which is only provided for Python 2.4 (Closes: #445277, #490915) -- Cédric Delfosse Mon, 21 Jul 2008 21:47:15 +0200 gaphor (0.12.5-3) unstable; urgency=low * Depends on python-pkg-resources instead of python-setuptools (Closes: #468732) -- Cédric Delfosse Fri, 21 Mar 2008 23:14:40 +0100 gaphor (0.12.5-2) unstable; urgency=low [ Piotr O�arowski ] * Moved python-setuptools and python-nose to Build-Depends (for clean target) * Add disable_ez_install patch, dpatch added to Build-Depends * Add remove_shebangs patch (previously in diff.gz) * Removed Encoding line from gaphor.desktop file, added Version=1.0 * Versions of required build dependencies bumped: + python-support to 0.6.4 - to handle Eggs well + python-nose to 0.9.2 - needed to run tests * Add python-cairo, python-gnome2 and python-gtk2 to Depends * Thanks Piotr for all these fixes ! (Closes: #461157) [ Cédric Delfosse ] * Standard-Version to 3.7.3 -- Cédric Delfosse Sun, 10 Feb 2008 21:41:57 +0100 gaphor (0.12.5-1) unstable; urgency=low * New upstream release (Closes: #461361) -- Cédric Delfosse Fri, 18 Jan 2008 22:47:06 +0100 gaphor (0.12.4-3) unstable; urgency=low * Depends on python-setuptools (Closes: #461213) * Patch from Emmet Hikory: * Build-Depends-Indep on xsltproc, docbook-xsl (Closes: #461157) * Build-Depends-Indep on python-setuptools and python-nose, so that auto- builders won't try to access network. * Fix lintian menu-item-uses-apps-section warning -- Cédric Delfosse Thu, 17 Jan 2008 21:47:37 +0100 gaphor (0.12.4-2) unstable; urgency=low * This time, really upload to unstable ... -- Cédric Delfosse Tue, 15 Jan 2008 22:06:32 +0100 gaphor (0.12.4-1) experimental; urgency=low * New upstream release, upload to unstable Closes: #444864 -- Version in debian is too old Closes: #415970 -- A new upstream version is available * No more use diacanvas2, but depends on gaphas Closes: #458104 -- gaphor segfaults and does not start Closes: #423515 -- gaphor segfaults after upgrading python-diacanvas2 -- Cédric Delfosse Tue, 15 Jan 2008 21:32:54 +0100 gaphor (0.10.4-1) experimental; urgency=low * Depends on python-gaphas and zope3 -- Cédric Delfosse Fri, 04 May 2007 21:32:16 +0200 gaphor (0.8.1-5.1) unstable; urgency=medium * NMU with maintainer's approval. * Fixing a RC bug: urgency medium. * Split gaphor in gaphor and gaphor-lib binary packages. The package gaphor-lib conflicts with zope3 and the package gaphor depends on "gaphor-lib | zope3". In this way, gaphor is still usable if zope3 is already installed in the system. (Closes: #369512) -- Fabio Tranchitella Mon, 8 Jan 2007 22:38:58 +0100 gaphor (0.8.1-5) unstable; urgency=low * gaphor/misc/resource.py: don't exit if resource file can't be read (Closes: Bug#394056) -- Cédric Delfosse Fri, 17 Nov 2006 23:33:36 +0100 gaphor (0.8.1-4) unstable; urgency=low * Depends on python-gnome2 (Closes: Bug#381388) -- Cédric Delfosse Wed, 9 Aug 2006 22:06:45 +0200 gaphor (0.8.1-3) unstable; urgency=low * Set debhelper compat to 5 * Use python-support * Set pycompat to 2 * Conflicts with the zope3 and python-zopeinterface package. But will try to find a better solution. * Update Depends (Closes: Bug#379930) -- Cédric Delfosse Sun, 23 Jul 2006 20:38:41 +0200 gaphor (0.8.1-2) unstable; urgency=low * Don't include zope interface stuff in the package, and add to Depends python2.4-zopeinterface (Closes: Bug#365465) * Standard-Version to 3.7.2 -- Cédric Delfosse Sat, 13 May 2006 10:08:20 +0200 gaphor (0.8.1-1) unstable; urgency=low * New upstream release (Closes: Bug#351206) * Help menu bug is fixed (Closes: Bug#312571) * Add a .desktop and a .xpm file (Closes: Bug#352229) -- Cédric Delfosse Tue, 14 Mar 2006 22:32:01 +0100 gaphor (0.7.1-1) unstable; urgency=low * New upstream release -- Cédric Delfosse Thu, 20 Oct 2005 22:55:01 +0200 gaphor (0.7.0.1-2) unstable; urgency=low * Enable plugins pngexport, svgexport, xmiexport (Closes: Bug#305498) -- Cédric Delfosse Sun, 22 May 2005 15:42:13 +0200 gaphor (0.7.0.1-1) unstable; urgency=low * New upstream release (Closes: Bug#280724, Bug#281744) -- Cédric Delfosse Mon, 4 Apr 2005 21:34:58 +0200 gaphor (0.5.1-2) unstable; urgency=low * debian/rules: don't redirect xvfb-run error messages to /dev/stdout -- Cédric Delfosse Sat, 4 Sep 2004 22:16:07 +0200 gaphor (0.5.1-1) unstable; urgency=low * New upstream release (Closes: Bug#269662) -- Cédric Delfosse Thu, 2 Sep 2004 21:38:19 +0200 gaphor (0.4.0-2) unstable; urgency=low * Add python-diacanvas2 to Depends. (Closes: Bug#266501) -- Cédric Delfosse Wed, 18 Aug 2004 21:35:50 +0200 gaphor (0.4.0-1) unstable; urgency=low * Initial Release. (Closes: Bug#252510) -- Cédric Delfosse Sat, 17 Jul 2004 19:30:35 +0200 debian/gaphor.manpages0000644000000000000000000000004712201520757012165 0ustar debian/gaphor.1 debian/gaphorconvert.1 debian/compat0000644000000000000000000000000212201520757010365 0ustar 7 debian/menu0000644000000000000000000000022412201520757010054 0ustar ?package(gaphor):needs="X11" section="Applications/Programming"\ title="gaphor" command="/usr/bin/gaphor"\ icon="/usr/share/pixmaps/gaphor.xpm" debian/control0000644000000000000000000000177312201520757010602 0ustar Source: gaphor Section: devel Priority: optional Maintainer: Dmitry Borodaenko Build-Depends: python (>= 0.4.90~), debhelper (>= 7.0.50~), python-setuptools, python-nose (>= 0.9.2), python-gaphas (>= 0.6.0), python-zope.component, python-pkg-resources, python-cairo, python-gnome2, python-gtk2, python-gobject, python-simplegeneric, python-etk.docking Standards-Version: 3.9.4 Vcs-Git: git://git.debian.org/users/angdraug/gaphor.git Vcs-Browser: http://git.debian.org/?p=users/angdraug/gaphor.git;a=summary Homepage: http://github.com/amolenaar/gaphor Package: gaphor Architecture: all Depends: ${python:Depends}, ${misc:Depends}, python-gaphas (>= 0.6.0), python-zope.component, python-pkg-resources, python-cairo, python-gnome2, python-gtk2, python-gobject, python-simplegeneric Description: UML modeling tool This program is an easy to use UML (Unified Modeling Language) modeling environment. It allows you to create UML diagrams for documentation and to assist you with design decisions. debian/rules0000755000000000000000000000076512201520757010257 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # GNU copyright 1997 to 1999 by Joey Hess. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --with python2 override_dh_clean: dh_clean rm -fr setuptools_git-*-py*.egg override_dh_install: dh_install # Comment zope requirement because zope3 package does not provide a # egg-info directory #find debian/ -wholename '*/gaphor-*.egg-info/requires.txt' \ # | xargs sed -i 's/^zope/# zope/' debian/patches/0000755000000000000000000000000012201520757010616 5ustar debian/patches/0001-no-setuptools-git.patch0000644000000000000000000000105212201520757015627 0ustar From: =?UTF-8?q?C=C3=A9dric=20Delfosse?= Date: Wed, 16 May 2012 20:25:43 +0300 Subject: no-setuptools-git --- setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 60c6f30..443d108 100644 --- a/setup.py +++ b/setup.py @@ -144,8 +144,7 @@ It uses the GTK+ environment for user interaction. setup_requires = [ #'Sphinx >= 1.0.6', - 'nose >= 0.10.4', - 'setuptools-git >= 0.3.4' + 'nose >= 0.10.4' ], test_suite = 'nose.collector', debian/patches/series0000644000000000000000000000012112201520757012025 0ustar 0001-no-setuptools-git.patch 0002-load-icons-and-xml-from-usr-share-gaphor.patch debian/patches/0002-load-icons-and-xml-from-usr-share-gaphor.patch0000644000000000000000000000760112201520757021736 0ustar From: Dmitry Borodaenko Date: Wed, 16 May 2012 20:30:05 +0300 Subject: load icons and xml from /usr/share/gaphor --- gaphor/services/helpservice.py | 2 +- gaphor/ui/__init__.py | 3 +-- gaphor/ui/mainwindow.py | 4 ++-- gaphor/ui/stock.py | 4 ++-- gaphor/ui/toplevelwindow.py | 2 +- 5 files changed, 7 insertions(+), 8 deletions(-) diff --git a/gaphor/services/helpservice.py b/gaphor/services/helpservice.py index c022a82..9b10930 100644 --- a/gaphor/services/helpservice.py +++ b/gaphor/services/helpservice.py @@ -41,7 +41,7 @@ class HelpService(object): @action(name='help-about', stock_id='gtk-about') def about(self): - logo_file = os.path.join(pkg_resources.get_distribution('gaphor').location, 'gaphor', 'ui', 'pixmaps', 'logo.png') + logo_file = '/usr/share/gaphor/pixmaps/logo.png' logo = gtk.gdk.pixbuf_new_from_file(logo_file) version = Application.distribution.version about = gtk.Dialog(_('About Gaphor'), self.main_window.window, gtk.DIALOG_MODAL, (gtk.STOCK_OK, gtk.RESPONSE_OK)) diff --git a/gaphor/ui/__init__.py b/gaphor/ui/__init__.py index 97fe574..ef8ba72 100644 --- a/gaphor/ui/__init__.py +++ b/gaphor/ui/__init__.py @@ -8,8 +8,7 @@ import pkg_resources import os.path icon_theme = gtk.icon_theme_get_default() -icon_theme.append_search_path(os.path.abspath( - pkg_resources.resource_filename('gaphor.ui', 'pixmaps'))) +icon_theme.append_search_path('/usr/share/gaphor/pixmaps') import re def _repl(m): diff --git a/gaphor/ui/mainwindow.py b/gaphor/ui/mainwindow.py index 87e1723..ef40de0 100644 --- a/gaphor/ui/mainwindow.py +++ b/gaphor/ui/mainwindow.py @@ -302,7 +302,7 @@ class MainWindow(object): self.window.set_resizable(self.resizable) # set default icons of gaphor windows - icon_dir = os.path.abspath(pkg_resources.resource_filename('gaphor.ui', 'pixmaps')) + icon_dir = '/usr/share/gaphor/pixmaps' icons = (gtk.gdk.pixbuf_new_from_file(os.path.join(icon_dir, f)) for f in ICONS) self.window.set_icon_list(*icons) @@ -327,7 +327,7 @@ class MainWindow(object): logger.debug('open component %s' % str(comp)) return comp.open() - filename = pkg_resources.resource_filename('gaphor.ui', 'layout.xml') + filename = '/usr/share/gaphor/layout.xml' self.layout = DockLayout() with open(filename) as f: diff --git a/gaphor/ui/stock.py b/gaphor/ui/stock.py index 644b1a2..67d028b 100644 --- a/gaphor/ui/stock.py +++ b/gaphor/ui/stock.py @@ -120,7 +120,7 @@ def load_stock_icons(): """ from xml.sax import make_parser parser = make_parser() - icon_dir = os.path.abspath(pkg_resources.resource_filename('gaphor.ui', 'pixmaps')) + icon_dir = '/usr/share/gaphor/pixmaps' log.info('Icon dir: %s' % icon_dir) #icon_dir = 'gaphor/data/pixmaps' loader = StockIconLoader(icon_dir) @@ -128,7 +128,7 @@ def load_stock_icons(): parser.setFeature(handler.feature_namespaces, 1) parser.setContentHandler(loader) - filename = pkg_resources.resource_filename('gaphor.ui', 'icons.xml') + filename = '/usr/share/gaphor/icons.xml' # Make the filename a full URL filename = 'file:' + filename.replace('\\\\', '/') #try: diff --git a/gaphor/ui/toplevelwindow.py b/gaphor/ui/toplevelwindow.py index 622ce04..772dd0f 100644 --- a/gaphor/ui/toplevelwindow.py +++ b/gaphor/ui/toplevelwindow.py @@ -42,7 +42,7 @@ class ToplevelWindow(object): self.window.set_resizable(self.resizable) # set default icons of gaphor windows - icon_dir = os.path.abspath(pkg_resources.resource_filename('gaphor.ui', 'pixmaps')) + icon_dir = '/usr/share/gaphor/pixmaps' icons = (gtk.gdk.pixbuf_new_from_file(os.path.join(icon_dir, f)) for f in ICONS) self.window.set_icon_list(*icons)