Hello community, here is the log from the commit of package spice-up for openSUSE:Factory checked in at 2019-06-12 13:12:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/spice-up (Old) and /work/SRC/openSUSE:Factory/.spice-up.new.4811 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "spice-up" Wed Jun 12 13:12:09 2019 rev:15 rq:705947 version:1.8.2 Changes: -------- --- /work/SRC/openSUSE:Factory/spice-up/spice-up.changes 2019-02-27 15:07:28.778422701 +0100 +++ /work/SRC/openSUSE:Factory/.spice-up.new.4811/spice-up.changes 2019-06-12 13:12:13.168947525 +0200 @@ -1,0 +2,12 @@ +Mon May 6 19:38:56 UTC 2019 - Alexei Podvalsky <avvi...@yandex.by> + +- Update to 1.8.2: + * Add Issue and PR Templates + * 1.8.1 Release + * Removed remote templates service + * Invert logic of history_is_enabled + * Respect privacy settings using Granite (#260) + * Require Gtk3.22 - Dropped support for older Gtk versions + * Update fr.po (#261) + +------------------------------------------------------------------- Old: ---- Spice-up-1.8.0.tar.gz New: ---- Spice-up-1.8.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ spice-up.spec ++++++ --- /var/tmp/diff_new_pack.8gjXko/_old 2019-06-12 13:12:13.604947068 +0200 +++ /var/tmp/diff_new_pack.8gjXko/_new 2019-06-12 13:12:13.608947064 +0200 @@ -17,7 +17,7 @@ Name: spice-up -Version: 1.8.0 +Version: 1.8.2 Release: 0 Summary: Desktop presentation application License: GPL-3.0-only ++++++ Spice-up-1.8.0.tar.gz -> Spice-up-1.8.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Spice-up-1.8.0/.github/ISSUE_TEMPLATE.md new/Spice-up-1.8.2/.github/ISSUE_TEMPLATE.md --- old/Spice-up-1.8.0/.github/ISSUE_TEMPLATE.md 1970-01-01 01:00:00.000000000 +0100 +++ new/Spice-up-1.8.2/.github/ISSUE_TEMPLATE.md 2019-05-06 06:03:55.000000000 +0200 @@ -0,0 +1,42 @@ +<!--- Thank you for making a bug repport! This allows us to make the app even better. --> +<!--- Filling out the folowing information will help us reproduce and fix the problem faster. --> + +## Expected Behavior +<!--- If you're describing a bug, tell us what should happen --> +<!--- If you're suggesting a change/improvement, tell us how it should work --> + +## Current Behavior +<!--- If describing a bug, tell us what happens instead of the expected behavior --> +<!--- If suggesting a change/improvement, explain the difference from current behavior --> + +## Possible Solution +<!--- Not obligatory, but suggest a fix/reason for the bug, --> +<!--- or ideas how to implement the addition or change --> + +## Steps to Reproduce (for bugs) +<!--- Help us reproduce the issue by providing us a set of steps to reproduce this bug --> +1. +2. +3. +4. + +## Context +<!--- How has this issue affected you? What are you trying to accomplish? --> +<!--- Providing context helps us come up with a solution that is most useful in the real world --> +<!--- If you have a terminal output you can share with us that would also be great! --> + +<!--- To get debug messages: G_MESSAGES_DEBUG=all com.github.philip-scott.spice-up --> + +<!--- Sharing the .spice file where the problem is at will also be super helpful. --> + +## Screenshots of the Problem +<!--- If you can show us a screenshot of the issue, this is the space for it! --> +<!--- If you're suggesting a feature and can give us a mockup, that would also be great! --> + +## Your Environment (for bugs) +<!--- Include as many relevant details about the environment you experienced the bug in --> +<!--- If you can also run the folowing command and put the output here, that would be super helpful! --> +<!--- uname -a && cat /etc/os-release --> + +- Spice-Up Version: <!-- From Release, or Commit if compiled from source --> +- OS Info: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Spice-up-1.8.0/.github/PULL_REQUEST_TEMPLATE.md new/Spice-up-1.8.2/.github/PULL_REQUEST_TEMPLATE.md --- old/Spice-up-1.8.0/.github/PULL_REQUEST_TEMPLATE.md 1970-01-01 01:00:00.000000000 +0100 +++ new/Spice-up-1.8.2/.github/PULL_REQUEST_TEMPLATE.md 2019-05-06 06:03:55.000000000 +0200 @@ -0,0 +1,27 @@ +<!--- Thanks for submitting a pull request! Please provide enough information --> +<!--- so that others can review your pull request. We will review it as soon as possible --> + +<!--- Make sure that the Travis tests pass in your PR --> +<!--- and that you are also using the elementary code style guidelines. --> +<!--- The code guideline is available here: https://elementary.io/docs/code/reference --> + +## Summary / How this PR fixes the problem? +<!--- Please write a description here --> + +## Steps to Test +<!--- In case your change requires testing, this should show that your code is solid! --> + +## Screenshots +<!--- Share a screenshot with us if it was a visual change, --> +<!--- preferably with before/after shots --> + +## Known Issues / Things To Do +<!--- If your PR is in progress or you know something is wrong with the code --> +<!--- write it here so we can help/discuss it --> +<!--- This is also a good place for a checklist with things left to fix in the PR --> + +## This PR fixes/implements the following **bugs/features**: +<!--- If there was an issue that this PR targets, adding it here will auto close it --> + +- Fixes #<!--- Replace me with Issue number --> +- Fixes #<!--- Replace me with Issue number --> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Spice-up-1.8.0/CMakeLists.txt new/Spice-up-1.8.2/CMakeLists.txt --- old/Spice-up-1.8.0/CMakeLists.txt 2019-01-20 01:13:29.000000000 +0100 +++ new/Spice-up-1.8.2/CMakeLists.txt 2019-05-06 06:03:55.000000000 +0200 @@ -21,9 +21,9 @@ add_definitions(-w) set (PKG_DEPS - granite>=5.2.0 + granite>=5.2.3 gee-0.8 - gtk+-3.0>=3.9.10 + gtk+-3.0>=3.22.0 json-glib-1.0 gudev-1.0 libevdev diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Spice-up-1.8.0/README.md new/Spice-up-1.8.2/README.md --- old/Spice-up-1.8.0/README.md 2019-01-20 01:13:29.000000000 +0100 +++ new/Spice-up-1.8.2/README.md 2019-05-06 06:03:55.000000000 +0200 @@ -65,9 +65,6 @@ sudo apt-get update sudo apt-get install com.github.philip-scott.spice-up -### Donations -Liked Spice-up? Would like to support its development of this app and more? Feel free to [leave a little tip :)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WYD9ZJK6ZFUDQ) or support my work torwards a new feature over at [Bountysource](https://www.bountysource.com/trackers/44752823-philip-scott-spice-up). I'd really appreciate it :) - ## Dependencies These dependencies must be present before building - `gtk+-3.0>=3.9.10` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Spice-up-1.8.0/data/com.github.philip-scott.spice-up.appdata.xml new/Spice-up-1.8.2/data/com.github.philip-scott.spice-up.appdata.xml --- old/Spice-up-1.8.0/data/com.github.philip-scott.spice-up.appdata.xml 2019-01-20 01:13:29.000000000 +0100 +++ new/Spice-up-1.8.2/data/com.github.philip-scott.spice-up.appdata.xml 2019-05-06 06:03:55.000000000 +0200 @@ -28,6 +28,18 @@ <binary>spice-up</binary> </provides> <releases> + <release version="1.8.2" date="2019-05-05"> + <description> + <p>Privacy Mode and Translations</p> + <ul> + <li>Spice-Up now respects privacy settings. When enabled, it will not show recently opened presentations.</li> + <li>The external templates fetcher service has been removed.</li> + <li>French translation updated by NathanBnm</li> + <li>German translation added by herrhotzenplotz</li> + <li>A big thanks to all the translators for your work!</li> + </ul> + </description> + </release> <release version="1.8.0" date="2019-01-20"> <description> <p>Multi-Files and More!</p> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Spice-up-1.8.0/po/de.po new/Spice-up-1.8.2/po/de.po --- old/Spice-up-1.8.0/po/de.po 1970-01-01 01:00:00.000000000 +0100 +++ new/Spice-up-1.8.2/po/de.po 2019-05-06 06:03:55.000000000 +0200 @@ -0,0 +1,409 @@ +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-05 23:01-0600\n" +"PO-Revision-Date: 2019-03-18 14:09+0100\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Gtranslator 3.32.0\n" +"Last-Translator: Nico Sonack <nson...@outlook.com>\n" +"Plural-Forms: nplurals=2; plural=(n != 1)\n" +"Language: de\n" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Application.vala:29 +msgid "Spice-Up" +msgstr "Spice-Up" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Application.vala:30 +msgid "About Spice-Up" +msgstr "Über Spice-Up" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/FileManager.vala:34 +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/GamepadSlideController.vala:166 +msgid "Cancel" +msgstr "Abbrechen" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/FileManager.vala:64 +msgid "Open Image" +msgstr "Bild öffnen" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/FileManager.vala:64 +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/FileManager.vala:77 +msgid "Open" +msgstr "Öffnen" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/FileManager.vala:77 +msgid "Open file" +msgstr "Datei öffnen" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/FileManager.vala:85 +msgid "Presentations" +msgstr "Präsentationen" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/FileManager.vala:98 +msgid "Untitled Presentation" +msgstr "Unbenannte Präsentation" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/FileManager.vala:103 +msgid "My Presentation" +msgstr "Meine Präsentation" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/FileManager.vala:104 +#, c-format +msgid "By: %s" +msgstr "Von: %s" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/FileManager.vala:210 +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Headerbar.vala:85 +msgid "Export to PDF" +msgstr "Als PDF exportieren" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/FileManager.vala:210 +msgid "Save" +msgstr "Speichern" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/GamepadSlideController.vala:66 +msgid "Controller found" +msgstr "Fernbedienung gefunden" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/GamepadSlideController.vala:67 +msgid "Set up…" +msgstr "Einrichten…" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/GamepadSlideController.vala:150 +msgid "Controller Configuration" +msgstr "Fernbedienung einrichten" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/GamepadSlideController.vala:159 +msgid "Next Slide:" +msgstr "Nächste Folie:" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/GamepadSlideController.vala:160 +msgid "Previous Slide:" +msgstr "Vorherige Folie:" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/GamepadSlideController.vala:161 +msgid "Set Jump:" +msgstr "Sprungmarke setzen:" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/GamepadSlideController.vala:162 +msgid "Jump to slide:" +msgstr "Gehe zu Folie:" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/GamepadSlideController.vala:163 +msgid "Toggle Presentation:" +msgstr "Präsentation umschalten:" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/GamepadSlideController.vala:167 +msgid "Apply" +msgstr "Anwenden" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/GamepadSlideController.vala:188 +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/GamepadSlideController.vala:200 +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/GamepadSlideController.vala:203 +#, c-format +msgid "Button %d" +msgstr "Button %d" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/GamepadSlideController.vala:210 +msgid "..." +msgstr "..." + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/CanvasItems/TextItem.vala:45 +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/CanvasItems/TextItem.vala:90 +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/CanvasItems/TextItem.vala:111 +msgid "Click to add text..." +msgstr "Klicken um Text hinzuzufügen..." + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/ColorPicker/ColorPicker.vala:94 +msgid "Color Palette" +msgstr "Farbpalette" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/ColorPicker/ColorPicker.vala:95 +msgid "Custom Color" +msgstr "Benutzerdefinierte Farbe" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/ColorPicker/ColorPicker.vala:96 +msgid "Gradient Palette" +msgstr "Farbverlaufspalette" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/ColorPicker/ColorPicker.vala:120 +msgid "Gradient Editor" +msgstr "Farbverlaufseditor" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/ColorPicker/ColorPicker.vala:228 +msgid "Pick Color" +msgstr "Farbe wählen" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/ColorPicker/GradientEditor.vala:65 +msgid "Gradient Direction" +msgstr "Verlaufsrichtung" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/ColorPicker/GradientEditor.vala:84 +msgid "Add color stop" +msgstr "Farbpunkt hinzufügen" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/ColorPicker/GradientEditor.vala:88 +msgid "Remove color stop" +msgstr "Farbpunkt entfernen" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Headerbar.vala:75 +msgid "Undo" +msgstr "Rückgängig machen" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Headerbar.vala:76 +msgid "Redo" +msgstr "Wiederholen" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Headerbar.vala:77 +msgid "Insert Text Box" +msgstr "Textelement hinzufügen" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Headerbar.vala:78 +msgid "Insert Image" +msgstr "Bild einfügen" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Headerbar.vala:79 +msgid "Insert Shape" +msgstr "Form einfügen" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Headerbar.vala:80 +msgid "Return to Welcome Screen" +msgstr "Zum Startbildschirm zurückkehren" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Headerbar.vala:86 +msgid "Start Presentation" +msgstr "Präsentieren" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Library/LibraryItem.vala:39 +#, c-format +msgid "Open: %s" +msgstr "Öffnen: %s" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Library/LibraryItem.vala:64 +msgid "Name: " +msgstr "Name: " + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Library/LibraryItem.vala:70 +msgid "Aspect Ratio: " +msgstr "Seitenverhältnis: " + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Library/LibraryItem.vala:85 +msgid "Open file location…" +msgstr "Pfad öffnen…" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Library/LibraryItem.vala:123 +msgid "Could not rename: File already exists…" +msgstr "Umbenennen fehlgeschlagen: Datei existiert bereits…" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/PresenterView.vala:228 +#, c-format +msgid "%d of %d" +msgstr "%d von %d" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/PresenterView.vala:230 +msgid "End" +msgstr "Ende" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/SlideList.vala:225 +msgid "Presenter Notes:" +msgstr "Notizen für Präsentator:" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CanvasBar.vala:35 +msgid "Background color" +msgstr "Hintergrundfarbe" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CanvasBar.vala:45 +msgid "Background pattern" +msgstr "Hintergrundmuster" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CanvasBar.vala:48 +msgid "3px tile" +msgstr "3px Kachelmuster" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CanvasBar.vala:49 +msgid "Fabric dark" +msgstr "Dunkler Stoff" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CanvasBar.vala:50 +msgid "Fabric light" +msgstr "Heller Stoff" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CanvasBar.vala:51 +#, fuzzy +msgid "Batthern" +msgstr "Batthern" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CanvasBar.vala:52 +msgid "Beige paper" +msgstr "Beiges Papier" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CanvasBar.vala:53 +msgid "Black linen" +msgstr "Schwarzes Leinen" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CanvasBar.vala:54 +msgid "Bright squares" +msgstr "Helle Quadrate" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CanvasBar.vala:55 +msgid "Diamond Upholstery" +msgstr "Diamantpolsterung" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CanvasBar.vala:56 +msgid "Flowers" +msgstr "Blumen" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CanvasBar.vala:57 +msgid "Hexellence" +msgstr "Hexzellenz" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CanvasBar.vala:58 +msgid "Gplay" +msgstr "Gplay" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CanvasBar.vala:59 +msgid "Geometry" +msgstr "Geometrie" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CanvasBar.vala:60 +msgid "Dark geometric" +msgstr "Dunkle Geometrie" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CanvasBar.vala:61 +msgid "Light wool" +msgstr "Helle Wolle" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CanvasBar.vala:62 +msgid "Neutral squares" +msgstr "Neutrale Quadrate" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CanvasBar.vala:63 +msgid "Silver scales" +msgstr "Silberne Reihen" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CanvasBar.vala:64 +msgid "Subtle grid" +msgstr "Leichtes Raster" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CanvasBar.vala:65 +msgid "Subtle squares" +msgstr "Leichte Quadrate" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CanvasBar.vala:66 +msgid "XV" +msgstr "XV" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CanvasBar.vala:67 +msgid " None" +msgstr " Nichts" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CommonBar.vala:38 +msgid "Delete" +msgstr "Entfernen" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CommonBar.vala:54 +msgid "Clone" +msgstr "Duplizieren" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CommonBar.vala:83 +msgid "Bring forward" +msgstr "In den Vordergrund" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CommonBar.vala:87 +msgid "Send backward" +msgstr "In den Hintergrund" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/ImageBar.vala:29 +msgid "Edit image with…" +msgstr "Bild bearbeiten mit…" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/ImageBar.vala:35 +msgid "Replace Image…" +msgstr "Bild ersetzen…" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/ShapeBar.vala:29 +msgid "Square" +msgstr "Quadrat" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/ShapeBar.vala:30 +msgid "Circle" +msgstr "Kreis" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/ShapeBar.vala:37 +msgid "Roundness" +msgstr "Abrundungsgrad" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/ShapeBar.vala:56 +msgid "Shape color" +msgstr "Farbe der Form" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/TextBar.vala:35 +msgid "Left" +msgstr "Links" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/TextBar.vala:35 +msgid "Center" +msgstr "Zentriert" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/TextBar.vala:35 +msgid "Right" +msgstr "Rechts" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/TextBar.vala:35 +msgid "Justify" +msgstr "Blocksatz" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/TextBar.vala:36 +msgid "Top" +msgstr "Oben" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/TextBar.vala:36 +msgid "Middle" +msgstr "Mitte" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/TextBar.vala:36 +msgid "Bottom" +msgstr "Unten" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/TextBar.vala:70 +msgid "Font color" +msgstr "Schriftfarbe" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/TextBar.vala:73 +msgid "Font Style" +msgstr "Schriftstil" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/TextBar.vala:80 +msgid "Font" +msgstr "Schriftart" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/TextBar.vala:92 +msgid "Font size" +msgstr "Schriftgröße" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/TextBar.vala:103 +msgid "Align" +msgstr "Anordnung" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Welcome.vala:38 +msgid "Make a Simple Presentation" +msgstr "Erstelle einfache Präsentationen" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Welcome.vala:41 +msgid "New Presentation" +msgstr "Neue Präsentation" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Welcome.vala:41 +msgid "Create a new presentation" +msgstr "Neue Präsentation erstellen" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Welcome.vala:42 +msgid "Open File" +msgstr "Datei öffnen" + +#: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Welcome.vala:42 +msgid "Open a saved presentation" +msgstr "Bestehende Präsentation öffnen" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Spice-up-1.8.0/po/fr.po new/Spice-up-1.8.2/po/fr.po --- old/Spice-up-1.8.0/po/fr.po 2019-01-20 01:13:29.000000000 +0100 +++ new/Spice-up-1.8.2/po/fr.po 2019-05-06 06:03:55.000000000 +0200 @@ -52,7 +52,7 @@ #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/FileManager.vala:104 #, c-format msgid "By: %s" -msgstr "De: %s" +msgstr "De : %s" #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/FileManager.vala:210 #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Headerbar.vala:85 @@ -69,7 +69,7 @@ #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/GamepadSlideController.vala:67 msgid "Set up…" -msgstr "Configuration" +msgstr "Configuration…" #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/GamepadSlideController.vala:150 msgid "Controller Configuration" @@ -77,19 +77,19 @@ #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/GamepadSlideController.vala:159 msgid "Next Slide:" -msgstr "Suivant:" +msgstr "Suivant :" #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/GamepadSlideController.vala:160 msgid "Previous Slide:" -msgstr "Précedent:" +msgstr "Précedent :" #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/GamepadSlideController.vala:161 msgid "Set Jump:" -msgstr "Créer un saut:" +msgstr "Créer un saut :" #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/GamepadSlideController.vala:162 msgid "Jump to slide:" -msgstr "Allez à la diapositive:" +msgstr "Allez à la diapositive :" #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Services/GamepadSlideController.vala:163 msgid "Toggle Presentation:" @@ -114,7 +114,7 @@ #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/CanvasItems/TextItem.vala:90 #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/CanvasItems/TextItem.vala:111 msgid "Click to add text..." -msgstr "Cliquer pour ajouter du text..." +msgstr "Cliquer pour ajouter du texte..." #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/ColorPicker/ColorPicker.vala:94 msgid "Color Palette" @@ -154,11 +154,11 @@ #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Headerbar.vala:76 msgid "Redo" -msgstr "Refaire" +msgstr "Rétablir" #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Headerbar.vala:77 msgid "Insert Text Box" -msgstr "Insérer du text" +msgstr "Insérer du texte" #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Headerbar.vala:78 msgid "Insert Image" @@ -166,7 +166,7 @@ #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Headerbar.vala:79 msgid "Insert Shape" -msgstr "Inseré une forme" +msgstr "Inserer une forme" #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Headerbar.vala:80 msgid "Return to Welcome Screen" @@ -179,15 +179,15 @@ #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Library/LibraryItem.vala:39 #, c-format msgid "Open: %s" -msgstr "Ouvrir: %s" +msgstr "Ouvrir : %s" #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Library/LibraryItem.vala:64 msgid "Name: " -msgstr "Nom: " +msgstr "Nom : " #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Library/LibraryItem.vala:70 msgid "Aspect Ratio: " -msgstr "Ratio: " +msgstr "Ratio : " #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Library/LibraryItem.vala:85 msgid "Open file location…" @@ -195,7 +195,7 @@ #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Library/LibraryItem.vala:123 msgid "Could not rename: File already exists…" -msgstr "Renommage impossible: Le fichier existe déjà…" +msgstr "Impossible de renommer : Le fichier existe déjà…" #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/PresenterView.vala:228 #, c-format @@ -208,7 +208,7 @@ #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/SlideList.vala:225 msgid "Presenter Notes:" -msgstr "Notes du présentateur:" +msgstr "Notes du présentateur :" #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CanvasBar.vala:35 msgid "Background color" @@ -228,7 +228,7 @@ #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CanvasBar.vala:50 msgid "Fabric light" -msgstr "Tissu claire" +msgstr "Tissu clair" #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CanvasBar.vala:51 msgid "Batthern" @@ -268,15 +268,15 @@ #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CanvasBar.vala:60 msgid "Dark geometric" -msgstr "Sombre Géométrie" +msgstr "Géométrie sombre" #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CanvasBar.vala:61 msgid "Light wool" -msgstr "Laine fine" +msgstr "Laine claire" #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CanvasBar.vala:62 msgid "Neutral squares" -msgstr "Petits carrés neutres" +msgstr "Carrés neutres" #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/CanvasBar.vala:63 msgid "Silver scales" @@ -332,7 +332,7 @@ #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/ShapeBar.vala:37 msgid "Roundness" -msgstr "Arrondir" +msgstr "Arrondi" #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/ShapeBar.vala:56 msgid "Shape color" @@ -368,7 +368,7 @@ #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/TextBar.vala:70 msgid "Font color" -msgstr "Couleur du text" +msgstr "Couleur du texte" #: /home/felipe/Code/com.github.philip-scott.spice-up/po/../src/Widgets/Toolbars/TextBar.vala:73 msgid "Font Style" @@ -410,10 +410,10 @@ #~ msgstr "Créer une Présentation" #~ msgid "Color 1:" -#~ msgstr "Couleur 1:" +#~ msgstr "Couleur 1 :" #~ msgid "Color 2:" -#~ msgstr "Couleur 2:" +#~ msgstr "Couleur 2 :" #~ msgid "Vertical" #~ msgstr "Verticale" @@ -422,4 +422,4 @@ #~ msgstr "Horizontale" #~ msgid "translator-credits" -#~ msgstr "Damien Bouthier" +#~ msgstr "Damien Bouthier / Corrections : NathanBnm" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Spice-up-1.8.0/src/CMakeLists.txt new/Spice-up-1.8.2/src/CMakeLists.txt --- old/Spice-up-1.8.0/src/CMakeLists.txt 2019-01-20 01:13:29.000000000 +0100 +++ new/Spice-up-1.8.2/src/CMakeLists.txt 2019-05-06 06:03:55.000000000 +0200 @@ -1,14 +1,6 @@ include(ValaPrecompile) -pkg_check_modules (GTK_3_22 QUIET gtk+-3.0>=3.20) -if (GTK_3_22_FOUND) - set (GLOBAL_VALAC_OPTIONS ${GLOBAL_VALAC_OPTIONS} --define=GTK_3_22) - message ("-- Compiling for Gtk 3.22") -else (GTK_3_22_FOUND) - message ("-- Compiling for Gtk 3.18") -endif (GTK_3_22_FOUND) - vala_precompile(VALA_C Main.vala Application.vala @@ -18,7 +10,6 @@ Services/Settings.vala Services/Slide.vala Services/SlideManager.vala - Services/Fetcher.vala Services/FileManager.vala Services/HistoryManager.vala Services/ImageHandler.vala diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Spice-up-1.8.0/src/Services/Fetcher.vala new/Spice-up-1.8.2/src/Services/Fetcher.vala --- old/Spice-up-1.8.0/src/Services/Fetcher.vala 2019-01-20 01:13:29.000000000 +0100 +++ new/Spice-up-1.8.2/src/Services/Fetcher.vala 1970-01-01 01:00:00.000000000 +0100 @@ -1,124 +0,0 @@ -/* -* Copyright (c) 2018 Felipe Escoto (https://github.com/Philip-Scott/Spice-up) -* -* This program 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; either -* version 2 of the License, or (at your option) any later version. -* -* This program 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 program; if not, write to the -* Free Software Foundation, Inc., 59 Temple Place - Suite 330, -* Boston, MA 02111-1307, USA. -* -* Authored by: Felipe Escoto <felescot...@hotmail.com> -*/ - -public class Spice.Services.Fetcher { - private const string TEMPLATES_URL = "https://spice-up-prod.azurewebsites.net/api/"; - private const int64 CACHE_LIFE = 43200; // 1/2 a day - public const string CURRENT_VERSION = "2"; - - private File? cache_file = null; - private string cache = ""; - private Mutex mutex = Mutex (); - - public Fetcher () { - var cache_folder = GLib.Path.build_filename (GLib.Environment.get_user_cache_dir (), Spice.Application.APP_ID); - - try { - File file = File.new_for_path (cache_folder); - if (!file.query_exists ()) { - file.make_directory (); - } - } catch (Error e) { - warning (e.message); - return; - } - - var cache_file_path = GLib.Path.build_filename (cache_folder, "templates-v%s.json".printf(CURRENT_VERSION)); - cache_file = File.new_for_path (cache_file_path); - } - - public void fetch_templates () { - if (cache_file == null) return; - - var now = new DateTime.now_utc ().to_unix (); - - var settigns = Spice.Services.Settings.get_instance (); - var previous_fetch = int64.parse (settigns.last_fetch); - - var try_to_fetch = now - previous_fetch > CACHE_LIFE || !cache_file.query_exists (); - - if (try_to_fetch) { - debug ("Getting templates from server\n"); - new Thread<void*> ("fetch-templates", () => { - var session = new Soup.Session (); - var message = new Soup.Message ("GET", TEMPLATES_URL + "get-templates"); - - session.send_message (message); - - var data = new StringBuilder (); - foreach (var c in message.response_body.data) { - data.append ("%c".printf (c)); - } - - mutex.lock (); - - cache = data.str; - - if (cache != "") { - save_to_cache (cache); - settigns.last_fetch = now.to_string (); - } - - mutex.unlock (); - - return null; - }); - } else { - debug ("Getting templates from cache\n"); - } - } - - public static string get_template_data (string template) { - var session = new Soup.Session (); - var message = new Soup.Message ("GET", TEMPLATES_URL + template); - - session.send_message (message); - - var data = new StringBuilder (); - foreach (var c in message.response_body.data) { - data.append ("%c".printf (c)); - } - - return data.str; - } - - public string? get_data () { - if (cache_file == null) return null; - - mutex.lock (); - if (cache == "" && cache_file.query_exists ()) { - cache = Services.FileManager.get_data (cache_file); - } - - string data = cache; - mutex.unlock (); - - return data; - } - - private void save_to_cache (string data) { - try { - GLib.FileUtils.set_data (cache_file.get_path (), data.data); - } catch (Error e) { - warning ("Could not write cache to temp file \"%s\": %s", cache_file.get_basename (), e.message); - } - } -} \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Spice-up-1.8.0/src/Services/Settings.vala new/Spice-up-1.8.2/src/Services/Settings.vala --- old/Spice-up-1.8.0/src/Services/Settings.vala 2019-01-20 01:13:29.000000000 +0100 +++ new/Spice-up-1.8.2/src/Services/Settings.vala 2019-05-06 06:03:55.000000000 +0200 @@ -43,6 +43,8 @@ } public void add_file (string file) { + if (!Granite.Services.System.history_is_enabled ()) return; + var current_files = last_files; Gee.List<string> existing_files = new Gee.ArrayList<string> (); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Spice-up-1.8.0/src/Widgets/CanvasItems/TextItem.vala new/Spice-up-1.8.2/src/Widgets/CanvasItems/TextItem.vala --- old/Spice-up-1.8.0/src/Widgets/CanvasItems/TextItem.vala 2019-01-20 01:13:29.000000000 +0100 +++ new/Spice-up-1.8.2/src/Widgets/CanvasItems/TextItem.vala 2019-05-06 06:03:55.000000000 +0200 @@ -205,11 +205,7 @@ } public override void style () { - #if GTK_3_22 var converted_font_size = (5.3 * canvas.current_ratio * font_size); - #else - var converted_font_size = (4.0 * canvas.current_ratio * font_size); - #endif if (converted_font_size > 0) { var font_css = get_font_css (font, font_style.down (), converted_font_size); @@ -266,7 +262,6 @@ private string get_font_css (string font, string _font_style, double font_size) { var font_size_text = font_size.to_string ().replace (",", "."); - #if GTK_3_22 var font_style = _font_style.replace ("black", "900"); font_style = font_style.replace ("extrabold", "800"); font_style = font_style.replace ("semibold", "600"); @@ -278,8 +273,5 @@ font_style = font_style.replace ("thin", "100"); return "%s %spx '%s'".printf (font_style, font_size_text, font); - #else - return "%s %s;\n font-size: %spx;".printf (font, _font_style, font_size_text); - #endif } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Spice-up-1.8.0/src/Widgets/Library/Library.vala new/Spice-up-1.8.2/src/Widgets/Library/Library.vala --- old/Spice-up-1.8.0/src/Widgets/Library/Library.vala 2019-01-20 01:13:29.000000000 +0100 +++ new/Spice-up-1.8.2/src/Widgets/Library/Library.vala 2019-05-06 06:03:55.000000000 +0200 @@ -60,23 +60,7 @@ var library_item = child as LibraryItem; if (library_item == null) return; - if (library_item.remote_path == null) { - item_selected (library_item.data); - } else { - sensitive = false; - new Thread<void*> ("fetch-template", () => { - var data = Spice.Services.Fetcher.get_template_data (library_item.remote_path); - - Idle.add (() => { - item_selected (data); - sensitive = true; - return GLib.Source.REMOVE; - }); - return null; - }); - } - - + item_selected (library_item.data); }); } @@ -98,9 +82,4 @@ var item = new LibraryItem (file, real_file); item_box.add (item); } - - public void add_remote (string file_name, string path, string data) { - var item = new LibraryItem.from_remote (data, file_name, path); - item_box.add (item); - } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Spice-up-1.8.0/src/Widgets/Library/LibraryItem.vala new/Spice-up-1.8.2/src/Widgets/Library/LibraryItem.vala --- old/Spice-up-1.8.0/src/Widgets/Library/LibraryItem.vala 2019-01-20 01:13:29.000000000 +0100 +++ new/Spice-up-1.8.2/src/Widgets/Library/LibraryItem.vala 2019-05-06 06:03:55.000000000 +0200 @@ -37,7 +37,6 @@ } public string data { get; construct set; } - public string? remote_path {get; construct set; default = null; } private SlideWidget slide_widget; private Gtk.Popover? popover = null; @@ -52,14 +51,6 @@ get_thumbnail (); } - public LibraryItem.from_remote (string data, string file_name, string path) { - Object (data: data, remote_path: path); - - title_label.label = file_name; - load_thumbnail (data); - set_tooltip_text (_("Create Presentation")); - } - construct { margin_top = 3; halign = Gtk.Align.CENTER; @@ -205,8 +196,6 @@ if (real_file) { get_file_data (); load_thumbnail (Utils.get_thumbnail_data (data)); - } else if (remote_path != null) { - load_thumbnail (data); } else { get_template_data (); load_thumbnail (Utils.get_thumbnail_data (data)); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Spice-up-1.8.0/src/Widgets/Toolbars/TextBar.vala new/Spice-up-1.8.2/src/Widgets/Toolbars/TextBar.vala --- old/Spice-up-1.8.0/src/Widgets/Toolbars/TextBar.vala 2019-01-20 01:13:29.000000000 +0100 +++ new/Spice-up-1.8.2/src/Widgets/Toolbars/TextBar.vala 2019-05-06 06:03:55.000000000 +0200 @@ -35,7 +35,6 @@ private string[] JUSTIFICATION_TRANSLATIONS = {_("Left"), _("Center"), _("Right"), _("Justify")}; private string[] ALIGN_TRANSLATIONS = {_("Top"), _("Middle"), _("Bottom")}; - #if GTK_3_22 const string TEXT_STYLE_CSS = """ label { font: 16px '%s'; @@ -47,23 +46,6 @@ font: %i %s 16px '%s'; } """; - #else - const string TEXT_STYLE_CSS = """ - .label { - font: %s; - font-size: 14px; - } - """; - - const string FONT_STYLE_CSS = """ - .label { - font: %s; - font-size: 14px; - font-style: %s; - font-weight: %i; - } - """; - #endif private unowned SlideManager manager; @@ -292,11 +274,8 @@ case Pango.Weight.HEAVY: weight = 900; break; case Pango.Weight.ULTRAHEAVY: weight = 1000; break; } - #if GTK_3_22 + Utils.set_style (entry, FONT_STYLE_CSS.printf (weight, style, family_name)); - #else - Utils.set_style (entry, FONT_STYLE_CSS.printf (family_name, style, weight)); - #endif } } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Spice-up-1.8.0/src/Widgets/Welcome.vala new/Spice-up-1.8.2/src/Widgets/Welcome.vala --- old/Spice-up-1.8.0/src/Widgets/Welcome.vala 2019-01-20 01:13:29.000000000 +0100 +++ new/Spice-up-1.8.2/src/Widgets/Welcome.vala 2019-05-06 06:03:55.000000000 +0200 @@ -27,14 +27,10 @@ private Granite.Widgets.Welcome welcome; private Spice.Widgets.Library.Library? library = null; private Spice.Widgets.Library.Library? templates = null; - private Spice.Services.Fetcher fetcher; private Gtk.Separator separator; private Gtk.Stack welcome_stack; public Welcome () { - fetcher = new Spice.Services.Fetcher (); - fetcher.fetch_templates (); - orientation = Gtk.Orientation.HORIZONTAL; get_style_context ().add_class ("view"); @@ -81,8 +77,6 @@ open_file (file); } }); - - load_remote_templates (); } welcome_stack.set_visible_child_full ("templates", Gtk.StackTransitionType.SLIDE_RIGHT); @@ -98,7 +92,7 @@ library = null; } - if (files.length > 0 ) { + if (files.length > 0 && Granite.Services.System.history_is_enabled ()) { library = new Spice.Widgets.Library.Library (files); add (library); @@ -115,29 +109,4 @@ separator.no_show_all = true; } } - - private void load_remote_templates () { - var template_data = fetcher.get_data (); - if (template_data == null) return; - - var json_data = Spice.Utils.get_json_object (template_data); - - if (json_data == null) return; - - if (json_data.get_string_member ("version") != Spice.Services.Fetcher.CURRENT_VERSION) return; - - var templates_array = json_data.get_array_member ("templates"); - - Idle.add (() => { - foreach (var raw in templates_array.get_elements ()) { - var template = raw.get_object (); - templates.add_remote ( - template.get_string_member ("name"), - template.get_string_member ("url"), - template.get_string_member ("preview") - ); - } - return GLib.Source.REMOVE; - }); - } } \ No newline at end of file