Use Utils to check for Windows instead of string compare
svn: r13459
This commit is contained in:
parent
83fd55e363
commit
ab302b4673
@ -30,7 +30,6 @@ import sys
|
|||||||
import os
|
import os
|
||||||
import const
|
import const
|
||||||
from gettext import gettext as _
|
from gettext import gettext as _
|
||||||
import platform
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
LOG = logging.getLogger(".grampsgui")
|
LOG = logging.getLogger(".grampsgui")
|
||||||
@ -61,6 +60,7 @@ import gobject
|
|||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
from QuestionDialog import ErrorDialog
|
from QuestionDialog import ErrorDialog
|
||||||
import config
|
import config
|
||||||
|
import Utils
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
@ -75,7 +75,7 @@ def register_stock_icons ():
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
#iconpath to the base image. The front of the list has highest priority
|
#iconpath to the base image. The front of the list has highest priority
|
||||||
if platform.system() == "Windows":
|
if Utils.win():
|
||||||
iconpaths = [
|
iconpaths = [
|
||||||
(os.path.join(const.IMAGE_DIR, '48x48'), '.png'),
|
(os.path.join(const.IMAGE_DIR, '48x48'), '.png'),
|
||||||
(const.IMAGE_DIR, '.png'),
|
(const.IMAGE_DIR, '.png'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user