Hello community,

here is the log from the commit of package quilter for openSUSE:Factory checked 
in at 2018-02-24 16:39:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/quilter (Old)
 and      /work/SRC/openSUSE:Factory/.quilter.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "quilter"

Sat Feb 24 16:39:09 2018 rev:5 rq:579628 version:1.5.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/quilter/quilter.changes  2018-01-31 
19:54:14.970898353 +0100
+++ /work/SRC/openSUSE:Factory/.quilter.new/quilter.changes     2018-02-24 
16:39:15.337717031 +0100
@@ -1,0 +2,7 @@
+Fri Feb 16 19:18:35 UTC 2018 - [email protected]
+
+- Update to 1.5.1:
+  * - Fix for AppCenter
+  * 1.5.0 - Fix the New File button to not nuke old files
+
+-------------------------------------------------------------------

Old:
----
  quilter-1.4.8.tar.gz

New:
----
  quilter-1.5.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ quilter.spec ++++++
--- /var/tmp/diff_new_pack.gbGLyq/_old  2018-02-24 16:39:17.137652254 +0100
+++ /var/tmp/diff_new_pack.gbGLyq/_new  2018-02-24 16:39:17.141652110 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           quilter
-Version:        1.4.8
+Version:        1.5.1
 Release:        0
 Summary:        Writing application
 License:        GPL-3.0

++++++ quilter-1.4.8.tar.gz -> quilter-1.5.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/quilter-1.4.8/data/com.github.lainsce.quilter.appdata.xml 
new/quilter-1.5.1/data/com.github.lainsce.quilter.appdata.xml
--- old/quilter-1.4.8/data/com.github.lainsce.quilter.appdata.xml       
2018-01-22 22:09:20.000000000 +0100
+++ new/quilter-1.5.1/data/com.github.lainsce.quilter.appdata.xml       
2018-02-11 00:35:28.000000000 +0100
@@ -24,6 +24,24 @@
     <url type="homepage">https://github.com/lainsce/quilter/</url>
     <url type="bugtracker">https://github.com/lainsce/quilter/issues</url>
     <releases>
+        <release version="1.5.0" date="2018-02-10">
+           <description>
+               <p>Release: New Sheets Won't Crumple Old Ones</p>
+               <ul>
+                   <li>The New File button will not purge old files.</li>
+               </ul>
+           </description>
+        </release>
+        <release version="1.4.9" date="2018-02-02">
+           <description>
+               <p>Release: ???</p>
+               <ul>
+                   <li>The autosave switch in preferences now saves its last 
state.</li>
+                   <li>Fixed the changing of type of focus mode 
highlighting.</li>
+                   <li>Minor fixes.</li>
+               </ul>
+           </description>
+        </release>
         <release version="1.4.6" date="2018-01-26">
            <description>
                <p>Release: New Menu &amp; Fries</p>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/quilter-1.4.8/debian/changelog 
new/quilter-1.5.1/debian/changelog
--- old/quilter-1.4.8/debian/changelog  2018-01-22 22:09:20.000000000 +0100
+++ new/quilter-1.5.1/debian/changelog  2018-02-11 00:35:28.000000000 +0100
@@ -1,3 +1,15 @@
+com.github.lainsce.quilter (1.5.0) xenial; urgency=low
+
+  * New File button will not nuke any files now.
+
+ -- Lains <[email protected]>  Sat, 10 Feb 2018 21:40:00 -0300
+
+com.github.lainsce.quilter (1.4.9) xenial; urgency=low
+
+  * Auto-save switch state is saved.
+
+ -- Lains <[email protected]>  Fri, 02 Feb 2018 12:40:00 -0300
+
 com.github.lainsce.quilter (1.4.6) xenial; urgency=low
 
   * The main menu now houses the Dark/Focus Mode buttons previously shown on 
the statusbar.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/quilter-1.4.8/meson.build 
new/quilter-1.5.1/meson.build
--- old/quilter-1.4.8/meson.build       2018-01-22 22:09:20.000000000 +0100
+++ new/quilter-1.5.1/meson.build       2018-02-11 00:35:28.000000000 +0100
@@ -1,6 +1,6 @@
 # Name our project
 project('com.github.lainsce.quilter', ['vala', 'c'],
-    version: '1.4.6'
+    version: '1.5.0'
 )
 
 # Import main lib files
@@ -60,7 +60,6 @@
     'src/Widgets/Cheatsheet.vala',
     'src/Styles/quilter.vala',
     'src/Styles/quilterdark.vala',
-    'src/Constants/FocusMode.vala',
     'src/Constants/AppSettings.vala',
     'src/Services/FileManager.vala',
     'src/Services/DialogUtils.vala',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/quilter-1.4.8/src/Constants/AppSettings.vala 
new/quilter-1.5.1/src/Constants/AppSettings.vala
--- old/quilter-1.4.8/src/Constants/AppSettings.vala    2018-01-22 
22:09:20.000000000 +0100
+++ new/quilter-1.5.1/src/Constants/AppSettings.vala    2018-02-11 
00:35:28.000000000 +0100
@@ -25,6 +25,7 @@
         public bool spellcheck { get; set; }
         public bool statusbar { get; set; }
         public bool use_system_font { get; set; }
+        public int focus_mode_type { get; set; }
         public int margins { get; set; }
         public int spacing { get; set; }
         public int window_height { get; set; }
@@ -35,7 +36,6 @@
         public string last_file { get; set; }
         public string subtitle { get; set; }
         public string spellcheck_language { get; set; }
-        public FocusMode focus_mode_type { get; set; }
 
         private static AppSettings? instance;
         public static unowned AppSettings get_default () {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/quilter-1.4.8/src/Constants/FocusMode.vala 
new/quilter-1.5.1/src/Constants/FocusMode.vala
--- old/quilter-1.4.8/src/Constants/FocusMode.vala      2018-01-22 
22:09:20.000000000 +0100
+++ new/quilter-1.5.1/src/Constants/FocusMode.vala      1970-01-01 
01:00:00.000000000 +0100
@@ -1,23 +0,0 @@
-/*-
- * Copyright (c) 2017 Lains
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation, either version 2.1 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-namespace Quilter {
-    public enum FocusMode {
-        PARAGRAPH,
-        SENTENCE
-    }
-}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/quilter-1.4.8/src/MainWindow.vala 
new/quilter-1.5.1/src/MainWindow.vala
--- old/quilter-1.4.8/src/MainWindow.vala       2018-01-22 22:09:20.000000000 
+0100
+++ new/quilter-1.5.1/src/MainWindow.vala       2018-02-11 00:35:28.000000000 
+0100
@@ -112,7 +112,7 @@
                     if (match_keycode (Gdk.Key.s, keycode)) {
                         try {
                             Services.FileManager.save ();
-                            saved_indicator (true);
+                            unsaved_indicator (true);
                         } catch (Error e) {
                             warning ("Unexpected error during open: " + 
e.message);
                         }
@@ -194,7 +194,7 @@
             save_as_button.clicked.connect (() => {
                 try {
                     Services.FileManager.save_as ();
-                    saved_indicator (true);
+                    unsaved_indicator (true);
                 } catch (Error e) {
                     warning ("Unexpected error during open: " + e.message);
                 }
@@ -208,7 +208,7 @@
             save_button.clicked.connect (() => {
                 try {
                     Services.FileManager.save ();
-                    saved_indicator (true);
+                    unsaved_indicator (true);
                 } catch (Error e) {
                     warning ("Unexpected error during open: " + e.message);
                 }
@@ -335,9 +335,11 @@
             settings.changed.connect (() => {
                 if (settings.autosave) {
                     save_button.visible = false;
+                    settings.autosave = true;
                 } else {
                     toolbar.pack_start (save_button);
                     save_button.visible = true;
+                    settings.autosave = false;
                 }
             });
 
@@ -444,7 +446,7 @@
             statusbar.reveal_child = settings.statusbar;
         }
 
-        public void saved_indicator (bool val) {
+        public void unsaved_indicator (bool val) {
             edit_view_content.is_modified = val;
 
             string unsaved_identifier = "* ";
@@ -461,15 +463,16 @@
         public void new_file () {
             debug ("New button pressed.");
             debug ("Buffer was modified. Asking user to save first.");
+            var settings = AppSettings.get_default ();
 
             if (edit_view_content.is_modified) {
                 var dialog = new 
Services.DialogUtils.Dialog.display_save_confirm (Application.window);
                 var result = dialog.run ();
                 dialog.destroy ();
 
-                if (result == Services.DialogUtils.DialogType.CANCEL) {
+                if (result == Gtk.ResponseType.CANCEL) {
                     debug ("User cancelled, don't do anything.");
-                } else if (result == Services.DialogUtils.DialogType.YES) {
+                } else if (result == Gtk.ResponseType.YES) {
                     debug ("User saves the file.");
 
                     try {
@@ -477,13 +480,16 @@
                     } catch (Error e) {
                         warning ("Unexpected error during save: " + e.message);
                     }
-                } else if (result == Services.DialogUtils.DialogType.NO) {
+                } else if (result == Gtk.ResponseType.NO) {
                     debug ("User doesn't care about the file, shoot it to 
space.");
 
                     edit_view_content.is_modified = false;
-                    file = null;
+                    string cache = Path.build_filename 
(Environment.get_user_cache_dir (), "com.github.lainsce.quilter" + "/temp");
+                    file = File.new_for_path (cache);
                     Widgets.SourceView.buffer.text = "";
                     toolbar.subtitle = "New Document";
+                    settings.last_file = file.get_path ();
+                    settings.subtitle = file.get_basename ();
                 } else {
                     return;
                 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/quilter-1.4.8/src/Services/DialogUtils.vala 
new/quilter-1.5.1/src/Services/DialogUtils.vala
--- old/quilter-1.4.8/src/Services/DialogUtils.vala     2018-01-22 
22:09:20.000000000 +0100
+++ new/quilter-1.5.1/src/Services/DialogUtils.vala     2018-02-11 
00:35:28.000000000 +0100
@@ -16,12 +16,6 @@
  */
 
 namespace Quilter.Services.DialogUtils {
-    public enum DialogType {
-        YES,
-        NO,
-        CANCEL
-    }
-
     public Gtk.FileChooserDialog create_file_chooser (string title,
             Gtk.FileChooserAction action) {
         var chooser = new Gtk.FileChooserDialog (title, null, action);
@@ -82,9 +76,9 @@
 
             var button = new Gtk.Button.with_label (_("Close without saving"));
             button.show ();
-            add_action_widget (button, DialogType.NO);
-            add_button ("_Cancel", DialogType.CANCEL);
-            add_button ("_Save", DialogType.YES);
+            add_action_widget (button, Gtk.ResponseType.NO);
+            add_button ("_Cancel", Gtk.ResponseType.CANCEL);
+            add_button ("_Save", Gtk.ResponseType.YES);
 
             var warning_image = new Gtk.Image.from_icon_name 
("dialog-warning", Gtk.IconSize.DIALOG);
             warning_image.show ();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/quilter-1.4.8/src/Widgets/Preferences.vala 
new/quilter-1.5.1/src/Widgets/Preferences.vala
--- old/quilter-1.4.8/src/Widgets/Preferences.vala      2018-01-22 
22:09:20.000000000 +0100
+++ new/quilter-1.5.1/src/Widgets/Preferences.vala      2018-02-11 
00:35:28.000000000 +0100
@@ -189,10 +189,10 @@
             var focus_mode_type = main_settings.focus_mode_type;
 
             switch (focus_mode_type) {
-                case FocusMode.PARAGRAPH:
+                case 0:
                     focus_mode_type_size.selected = 0;
                     break;
-                case FocusMode.SENTENCE:
+                case 1:
                     focus_mode_type_size.selected = 1;
                     break;
                 default:
@@ -203,10 +203,10 @@
             focus_mode_type_size.mode_changed.connect (() => {
                 switch (focus_mode_type_size.selected) {
                     case 0:
-                        main_settings.focus_mode_type = FocusMode.PARAGRAPH;
+                        main_settings.focus_mode_type = 0;
                         break;
                     case 1:
-                        main_settings.focus_mode_type = FocusMode.SENTENCE;
+                        main_settings.focus_mode_type = 1;
                         break;
                     case 2:
                         main_settings.focus_mode_type = focus_mode_type;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/quilter-1.4.8/src/Widgets/SourceView.vala 
new/quilter-1.5.1/src/Widgets/SourceView.vala
--- old/quilter-1.4.8/src/Widgets/SourceView.vala       2018-01-22 
22:09:20.000000000 +0100
+++ new/quilter-1.5.1/src/Widgets/SourceView.vala       2018-02-11 
00:35:28.000000000 +0100
@@ -103,13 +103,13 @@
         construct {
             var settings = AppSettings.get_default ();
             var manager = Gtk.SourceLanguageManager.get_default ();
-            var language = manager.guess_language (null, "text/x-markdown");
+            var language = manager.guess_language (null, "text/markdown");
             buffer = new Gtk.SourceBuffer.with_language (language);
             buffer.highlight_syntax = true;
             buffer.set_max_undo_levels (20);
             buffer.changed.connect (() => {
                 on_text_modified ();
-                Application.window.saved_indicator (false);
+                Application.window.unsaved_indicator (false);
             });
 
             darkgrayfont = buffer.create_tag(null, "foreground", "#222");
@@ -120,7 +120,7 @@
             is_modified = false;
 
             if (settings.autosave = true) {
-                Timeout.add_seconds (20, () => {
+                Timeout.add_seconds (10, () => {
                     on_text_modified ();
                     return true;
                 });
@@ -273,10 +273,10 @@
                 var focus_type = settings.focus_mode_type;
                 if (cursor_iter != start) {
                     switch (focus_type) {
-                        case FocusMode.PARAGRAPH:
+                        case 0:
                             start_sentence.backward_lines (1);
                             break;
-                        case FocusMode.SENTENCE:
+                        case 1:
                             start_sentence.backward_sentence_start ();
                             break;
                         default:
@@ -288,10 +288,10 @@
                 var end_sentence = cursor_iter;
                 if (cursor_iter != end) {
                     switch (focus_type) {
-                        case FocusMode.PARAGRAPH:
+                        case 0:
                             end_sentence.forward_lines (2);
                             break;
-                        case FocusMode.SENTENCE:
+                        case 1:
                             end_sentence.forward_sentence_end ();
                             break;
                         default:


Reply via email to