Changeset 4116


Ignore:
Timestamp:
Apr 6, 2017, 2:30:12 PM (3 years ago)
Author:
hectorgh
Message:

wip

Location:
lliurex-store/trunk/fuentes/lliurex-store-gui/usr/share/lliurex-store/lliurex-store-gui
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • lliurex-store/trunk/fuentes/lliurex-store-gui/usr/share/lliurex-store/lliurex-store-gui/CategoriesManager.py

    r4115 r4116  
    11import json
     2import Core
    23
    3 RSRC="./rsrc/"
    44
    55class CategoriesManager:
     
    77        def __init__(self):
    88               
     9                self.core=Core.Core.get_core()
     10               
    911                self.categories={}
    1012               
    11                 f=open(RSRC+"sections.json")
     13                f=open(self.core.rsrc_dir+"sections.json")
    1214                self.categories=json.load(f)
    1315                f.close()
  • lliurex-store/trunk/fuentes/lliurex-store-gui/usr/share/lliurex-store/lliurex-store-gui/Core.py

    r4115 r4116  
    1616
    1717
    18 RSRC_DIR="./rsrc/"
     18RSRC_DIR="/usr/share/lliurex-store/lliurex-store-gui/rsrc/"
    1919
    2020
  • lliurex-store/trunk/fuentes/lliurex-store-gui/usr/share/lliurex-store/lliurex-store-gui/DetailsBox.py

    r4115 r4116  
    2020_ = gettext.gettext
    2121
    22 TMP_STORE_DIR="/tmp/.lliurex-store/"
     22
    2323TMP_STORE_DIR=os.path.expanduser("~/.cache/")
    2424
    25 RSRC="./rsrc/"
     25
    2626
    2727class DetailsBox(Gtk.VBox):
     
    420420               
    421421                self.style_provider=Gtk.CssProvider()
    422                 f=Gio.File.new_for_path(RSRC+"lliurex-store.css")
     422                f=Gio.File.new_for_path(self.core.rsrc_dir+"lliurex-store.css")
    423423                self.style_provider.load_from_file(f)
    424424                Gtk.StyleContext.add_provider_for_screen(Gdk.Screen.get_default(),self.style_provider,Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION)
  • lliurex-store/trunk/fuentes/lliurex-store-gui/usr/share/lliurex-store/lliurex-store-gui/MainMenu.py

    r4115 r4116  
    231231                        i["custom_frame"]=True
    232232                        i["name"]=label
    233                        
    234233                        s.create_banner_from_file(i)
    235234                        b.add(s)
  • lliurex-store/trunk/fuentes/lliurex-store-gui/usr/share/lliurex-store/lliurex-store-gui/rsrc/sections.json

    r4115 r4116  
    1313            "WebDevelopment"
    1414        ],
    15         "small_icon": "rsrc/icons/small_icons/development.svg",
    16         "small_icon_over": "rsrc/icons/small_icons/development_white.svg",
    17         "icon": "rsrc/icons/clean_icons/development.svg"
     15        "small_icon": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/small_icons/development.svg",
     16        "small_icon_over": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/small_icons/development_white.svg",
     17        "icon": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/clean_icons/development.svg"
    1818    },
    1919    "Education": {
     
    5050            "Sports"
    5151        ],
    52         "small_icon": "rsrc/icons/small_icons/education.svg",
    53         "small_icon_over": "rsrc/icons/small_icons/education_white.svg",
    54         "icon": "rsrc/icons/clean_icons/education.svg"
     52        "small_icon": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/small_icons/education.svg",
     53        "small_icon_over": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/small_icons/education_white.svg",
     54        "icon": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/clean_icons/education.svg"
    5555    },
    5656    "Network": {
     
    7373            "WebDevelopment"
    7474        ],
    75         "small_icon": "rsrc/icons/small_icons/internet.svg",
    76         "small_icon_over": "rsrc/icons/small_icons/internet_white.svg",
    77         "icon": "rsrc/icons/clean_icons/internet.svg"
     75        "small_icon": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/small_icons/internet.svg",
     76        "small_icon_over": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/small_icons/internet_white.svg",
     77        "icon": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/clean_icons/internet.svg"
    7878    },
    7979    "Office": {
     
    9696            "WordProcessor"
    9797        ],
    98         "small_icon": "rsrc/icons/small_icons/office.svg",
    99         "small_icon_over": "rsrc/icons/small_icons/office_white.svg",
    100         "icon": "rsrc/icons/clean_icons/office.svg"
     98        "small_icon": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/small_icons/office.svg",
     99        "small_icon_over": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/small_icons/office_white.svg",
     100        "icon": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/clean_icons/office.svg"
    101101    },
    102102    "Science": {
     
    132132            "Sports"
    133133        ],
    134         "small_icon": "rsrc/icons/small_icons/science.svg",
    135         "small_icon_over": "rsrc/icons/small_icons/science_white.svg",
    136         "icon": "rsrc/icons/clean_icons/science.svg"
     134        "small_icon": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/small_icons/science.svg",
     135        "small_icon_over": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/small_icons/science_white.svg",
     136        "icon": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/clean_icons/science.svg"
    137137    },
    138138     "System": {
     
    146146            "TerminalEmulator"
    147147        ],
    148         "small_icon": "rsrc/icons/small_icons/system.svg",
    149         "small_icon_over": "rsrc/icons/small_icons/system_white.svg",
    150         "icon": "rsrc/icons/clean_icons/system.svg"
     148        "small_icon": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/small_icons/system.svg",
     149        "small_icon_over": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/small_icons/system_white.svg",
     150        "icon": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/clean_icons/system.svg"
    151151    },
    152152    "Lliurex": {
     
    156156            "Miscellaneous"
    157157        ],
    158         "small_icon": "rsrc/icons/small_icons/lliurex.svg",
    159         "small_icon_over": "rsrc/icons/small_icons/lliurex_white.svg",
    160         "icon": "rsrc/icons/clean_icons/lliurex.svg"
     158        "small_icon": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/small_icons/lliurex.svg",
     159        "small_icon_over": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/small_icons/lliurex_white.svg",
     160        "icon": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/clean_icons/lliurex.svg"
    161161    },
    162162    "Game": {
     
    177177            "StrategyGame"
    178178        ],
    179         "small_icon": "rsrc/icons/small_icons/games.svg",
    180         "small_icon_over": "rsrc/icons/small_icons/games_white.svg",
    181         "icon": "rsrc/icons/clean_icons/games.svg"
     179        "small_icon": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/small_icons/games.svg",
     180        "small_icon_over": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/small_icons/games_white.svg",
     181        "icon": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/clean_icons/games.svg"
    182182    },
    183183    "Video": {
     
    190190            "TV"
    191191        ],
    192         "small_icon": "rsrc/icons/small_icons/video.svg",
    193         "small_icon_over": "rsrc/icons/small_icons/video_white.svg",
    194         "icon": "rsrc/icons/clean_icons/video.svg"
     192        "small_icon": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/small_icons/video.svg",
     193        "small_icon_over": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/small_icons/video_white.svg",
     194        "icon": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/clean_icons/video.svg"
    195195    },
    196196    "Graphics": {
     
    206206            "Viewer"
    207207        ],
    208         "small_icon": "rsrc/icons/small_icons/graphics.svg",
    209         "small_icon_over": "rsrc/icons/small_icons/graphics_white.svg",
    210         "icon": "rsrc/icons/clean_icons/graphics.svg"
     208        "small_icon": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/small_icons/graphics.svg",
     209        "small_icon_over": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/small_icons/graphics_white.svg",
     210        "icon": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/clean_icons/graphics.svg"
    211211    },
    212212    "Audio": {
     
    224224            "Tuner"
    225225        ],
    226         "small_icon": "rsrc/icons/small_icons/audio.svg",
    227         "small_icon_over": "rsrc/icons/small_icons/audio_white.svg",
    228         "icon": "rsrc/icons/clean_icons/audio.svg"
     226        "small_icon": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/small_icons/audio.svg",
     227        "small_icon_over": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/small_icons/audio_white.svg",
     228        "icon": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/clean_icons/audio.svg"
    229229    },
    230230    "Utility": {
     
    241241            "TextEditor"
    242242        ],
    243         "small_icon": "rsrc/icons/small_icons/utilities.svg",
    244         "small_icon_over": "rsrc/icons/small_icons/utilities_white.svg",
    245         "icon": "rsrc/icons/clean_icons/utilities.svg"
     243        "small_icon": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/small_icons/utilities.svg",
     244        "small_icon_over": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/small_icons/utilities_white.svg",
     245        "icon": "/usr/share/lliurex-store/lliurex-store-gui/rsrc/icons/clean_icons/utilities.svg"
    246246    }
    247247}
Note: See TracChangeset for help on using the changeset viewer.