Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Themed icons #35

Merged
merged 2 commits into from
Oct 7, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 2 additions & 17 deletions generate_desktop_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
prefix = "[Desktop Entry]\n"

suffix = """Exec=mintbackup
Icon=/usr/share/pixmaps/mintbackup/icon.svg
Icon=mintbackup
Terminal=false
Type=Application
Encoding=UTF-8
Expand All @@ -29,22 +29,7 @@
prefix = "[Desktop Entry]\n"

suffix = """Exec=mintBackup
Icon=/usr/share/pixmaps/mintbackup/icon.png
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Application;System;Settings
NoDisplay=true
MimeType=application/x-backup;
"""

additionalfiles.generate(DOMAIN, PATH, "usr/share/applications/mintbackup_mime.desktop", prefix, _("Backup Tool"), _("Make a backup of your home directory"), suffix)


prefix = "[Desktop Entry]\n"

suffix = """Exec=mintBackup
Icon=/usr/share/pixmaps/mintbackup/icon.png
Icon=mintbackup
Terminal=false
Type=Application
Encoding=UTF-8
Expand Down
6 changes: 0 additions & 6 deletions usr/lib/linuxmint/mintbackup/mintbackup.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ class MintBackup:
def __init__(self):
self.builder = Gtk.Builder()
self.builder.add_from_file(UI_FILE)
self.builder.get_object("main_window").set_icon_from_file("/usr/share/pixmaps/mintbackup/icon.png")

# handle command line filenames
if len(sys.argv) > 1:
Expand Down Expand Up @@ -300,11 +299,6 @@ def __init__(self):
self.builder.get_object("label_detail3").set_markup("<small>" + _("Restore a previous backup") + "</small>")
self.builder.get_object("label_detail4").set_markup("<small>" + _("Restore previously installed applications") + "</small>")

self.builder.get_object("image_backup_data").set_from_file("/usr/share/pixmaps/mintbackup/backup-data.svg")
self.builder.get_object("image_restore_data").set_from_file("/usr/share/pixmaps/mintbackup/restore-data.svg")
self.builder.get_object("image_backup_software").set_from_file("/usr/share/pixmaps/mintbackup/backup-software.svg")
self.builder.get_object("image_restore_software").set_from_file("/usr/share/pixmaps/mintbackup/restore-software.svg")

# i18n - Page 1 (choose backup directories)
self.builder.get_object("label_title_destination").set_markup("<big><b>" + _("Backup files") + "</b></big>")
self.builder.get_object("label_caption_destination").set_markup("<i>" + _("Please select a source and a destination for your backup") + "</i>")
Expand Down
177 changes: 0 additions & 177 deletions usr/share/applications/mintbackup_mime.desktop

This file was deleted.

Binary file not shown.
Loading