Author: kitone
Date: Sat Feb 13 10:57:21 2016
New Revision: 966

URL: http://svn.gna.org/viewcvs/subtitleeditor?rev=966&view=rev
Log:
Fix bug #24407 : Undo/redo should be unlimited/have configurable limit/ higher 
limit

Modified:
    trunk/ChangeLog
    trunk/plugins/actions/preferences/dialog-preferences.ui
    trunk/plugins/actions/preferences/interfacepage.h

Modified: trunk/ChangeLog
URL: 
http://svn.gna.org/viewcvs/subtitleeditor/trunk/ChangeLog?rev=966&r1=965&r2=966&view=diff
==============================================================================
--- trunk/ChangeLog     (original)
+++ trunk/ChangeLog     Sat Feb 13 10:57:21 2016
@@ -1,3 +1,9 @@
+2016-02-13  kitone  <[email protected]>
+
+       * plugins/actions/preferences/dialog-preferences.ui:
+       * plugins/actions/preferences/interfacepage.h:
+       Fix bug #24407 : Undo/redo should be unlimited/have configurable limit/ 
higher limit
+
 2016-02-07  kitone  <[email protected]>
 
        * plugins/actions/preferences/dialog-preferences.ui:

Modified: trunk/plugins/actions/preferences/dialog-preferences.ui
URL: 
http://svn.gna.org/viewcvs/subtitleeditor/trunk/plugins/actions/preferences/dialog-preferences.ui?rev=966&r1=965&r2=966&view=diff
==============================================================================
--- trunk/plugins/actions/preferences/dialog-preferences.ui     (original)
+++ trunk/plugins/actions/preferences/dialog-preferences.ui     Sat Feb 13 
10:57:21 2016
@@ -26,6 +26,11 @@
     <property name="upper">999</property>
     <property name="value">1</property>
     <property name="step_increment">1</property>
+  </object>
+  <object class="GtkAdjustment" id="adjustment-max-undo">
+    <property name="upper">100</property>
+    <property name="step_increment">1</property>
+    <property name="page_increment">10</property>
   </object>
   <object class="GtkAdjustment" id="adjustment-min-cps">
     <property name="lower">1</property>
@@ -177,6 +182,43 @@
                                 <property name="position">2</property>
                               </packing>
                             </child>
+                            <child>
+                              <object class="GtkBox" id="box13">
+                                <property name="visible">True</property>
+                                <property name="can_focus">False</property>
+                                <property name="spacing">6</property>
+                                <child>
+                                  <object class="GtkLabel" id="label-max-undo">
+                                    <property name="visible">True</property>
+                                    <property name="can_focus">False</property>
+                                    <property name="label" 
translatable="yes">Maximum number of undo levels: </property>
+                                  </object>
+                                  <packing>
+                                    <property name="expand">False</property>
+                                    <property name="fill">True</property>
+                                    <property name="position">0</property>
+                                  </packing>
+                                </child>
+                                <child>
+                                  <object class="GtkSpinButton" 
id="spin-max-undo">
+                                    <property name="visible">True</property>
+                                    <property name="can_focus">True</property>
+                                    <property name="tooltip_text" 
translatable="yes">Zero for unlimited history</property>
+                                    <property 
name="adjustment">adjustment-max-undo</property>
+                                  </object>
+                                  <packing>
+                                    <property name="expand">False</property>
+                                    <property name="fill">True</property>
+                                    <property name="position">1</property>
+                                  </packing>
+                                </child>
+                              </object>
+                              <packing>
+                                <property name="expand">False</property>
+                                <property name="fill">True</property>
+                                <property name="position">3</property>
+                              </packing>
+                            </child>
                           </object>
                         </child>
                       </object>

Modified: trunk/plugins/actions/preferences/interfacepage.h
URL: 
http://svn.gna.org/viewcvs/subtitleeditor/trunk/plugins/actions/preferences/interfacepage.h?rev=966&r1=965&r2=966&view=diff
==============================================================================
--- trunk/plugins/actions/preferences/interfacepage.h   (original)
+++ trunk/plugins/actions/preferences/interfacepage.h   Sat Feb 13 10:57:21 2016
@@ -38,6 +38,7 @@
                init_widget(xml, "check-use-dynamic-keyboard-shortcuts", 
"interface", "use-dynamic-keyboard-shortcuts");
                init_widget(xml, "check-maximize-window", "interface", 
"maximize-window");
                init_widget(xml, "check-ask-to-save-on-exit", "interface", 
"ask-to-save-on-exit");
+               init_widget(xml, "spin-max-undo", "interface", "max-undo");
 
                init_widget(xml, "check-center-subtitle", "subtitle-view", 
"property-alignment-center");
                init_widget(xml, "check-show-character-per-line", 
"subtitle-view", "show-character-per-line");


_______________________________________________
Subtitleeditor-commits mailing list
[email protected]
https://mail.gna.org/listinfo/subtitleeditor-commits

Reply via email to