[gedit/wip/redesign-fixes] Add undo/redo actions to the header bar



commit 67f155692136f55255600288840eef0691495558
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon Feb 3 09:06:26 2014 +0100

    Add undo/redo actions to the header bar
    
    The undo and redo actions are already in the GActionEntry array.
    The actions are added to the right of the header bar, on the left of the
    save action.
    
    The left of the headerbar is thus only for opening files and tabs.

 gedit/gedit-window.ui |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 42 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-window.ui b/gedit/gedit-window.ui
index a1e94c8..a3dc865 100644
--- a/gedit/gedit-window.ui
+++ b/gedit/gedit-window.ui
@@ -345,6 +345,48 @@
                 <property name="pack_type">end</property>
               </packing>
             </child>
+            <child>
+              <object class="GtkButton" id="redo_button">
+                <property name="visible">True</property>
+                <property name="valign">center</property>
+                <property name="tooltip_text" translatable="yes">Redo</property>
+                <property name="action_name">win.redo</property>
+                <style>
+                  <class name="image-button"/>
+                </style>
+                <child>
+                  <object class="GtkImage" id="redo_image">
+                    <property name="visible">True</property>
+                    <property name="icon_size">1</property>
+                    <property name="icon_name">edit-redo-symbolic</property>
+                  </object>
+                </child>
+              </object>
+              <packing>
+                <property name="pack_type">end</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkButton" id="undo_button">
+                <property name="visible">True</property>
+                <property name="valign">center</property>
+                <property name="tooltip_text" translatable="yes">Undo</property>
+                <property name="action_name">win.undo</property>
+                <style>
+                  <class name="image-button"/>
+                </style>
+                <child>
+                  <object class="GtkImage" id="undo_image">
+                    <property name="visible">True</property>
+                    <property name="icon_size">1</property>
+                    <property name="icon_name">edit-undo-symbolic</property>
+                  </object>
+                </child>
+              </object>
+              <packing>
+                <property name="pack_type">end</property>
+              </packing>
+            </child>
           </object>
         </child>
       </object>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]