~dpm/qreator/snap

« back to all changes in this revision

Viewing changes to qreator/__init__.py

  • Committer: Stefan Schwarzburg
  • Date: 2013-05-25 17:44:15 UTC
  • mto: This revision was merged to the branch mainline in revision 173.
  • Revision ID: stefan.schwarzburg@gmail.com-20130525174415-9h9v409xkd3zqv5o
added icons locally and added a local icon theme search path

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# with this program.  If not, see <http://www.gnu.org/licenses/>.
15
15
### END LICENSE
16
16
 
 
17
import os.path
17
18
import optparse
18
19
 
19
20
from qreator_lib.i18n import _
20
21
from gi.repository import Gtk, Gdk, GLib, GObject  # pylint: disable=E0611
21
22
from qreator import QreatorWindow
22
 
from qreator_lib import set_up_logging, get_version
 
23
from qreator_lib import set_up_logging, get_version, get_data_path
23
24
from qreator.qrcodes.QRCodeType import QRCodeType
24
25
 
25
26
# use dynamic importing to get all qrcode dataformats without
59
60
 
60
61
def main():
61
62
    'constructor for your class instances'
 
63
 
 
64
    # Fix icons which are missing in 12.04
 
65
    icontheme = Gtk.IconTheme.get_default()
 
66
    icontheme.append_search_path(os.path.join(get_data_path(), "media"))
 
67
 
62
68
    # Run the application
63
69
    window = QreatorWindow.QreatorWindow()
64
70