[meld] Add read-only toggle button to support setting files to be uneditable



commit 0f1e1434df0e886deeb581f40785ee5355736681
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Mon Dec 17 06:36:20 2012 +1000

    Add read-only toggle button to support setting files to be uneditable

 data/ui/filediff.ui |   72 ++++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 63 insertions(+), 9 deletions(-)
---
diff --git a/data/ui/filediff.ui b/data/ui/filediff.ui
index 3322aba..d76b713 100644
--- a/data/ui/filediff.ui
+++ b/data/ui/filediff.ui
@@ -121,15 +121,33 @@
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
                 <child>
-                <object class="HistoryFileEntry" id="fileentry2">
-                  <property name="visible">True</property>
-                  <property name="history-id">fileentry</property>
-                  <signal handler="on_fileentry_activate" name="activate"/>
-                </object>
-                <packing>
-                  <property name="expand">True</property>
-                  <property name="fill">True</property>
-                </packing>
+                  <object class="GtkToggleButton" id="readonlytoggle2">
+                    <property name="visible">True</property>
+                    <property name="can_focus">False</property>
+                    <property name="relief">none</property>
+                    <signal handler="on_readonly_button_toggled" name="toggled"/>
+                    <child>
+                      <object class="GtkImage" id="readonly_image2">
+                        <property name="visible">True</property>
+                        <property name="icon-name">emblem-readonly</property>
+                      </object>
+                    </child>
+                  </object>
+                  <packing>
+                    <property name="expand">False</property>
+                    <property name="fill">True</property>
+                  </packing>
+                </child>
+                <child>
+                  <object class="HistoryFileEntry" id="fileentry2">
+                    <property name="visible">True</property>
+                    <property name="history-id">fileentry</property>
+                    <signal handler="on_fileentry_activate" name="activate"/>
+                  </object>
+                  <packing>
+                    <property name="expand">True</property>
+                    <property name="fill">True</property>
+                  </packing>
                 </child>
               </object>
               <packing>
@@ -144,6 +162,24 @@
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
                 <child>
+                  <object class="GtkToggleButton" id="readonlytoggle1">
+                    <property name="visible">True</property>
+                    <property name="can_focus">False</property>
+                    <property name="relief">none</property>
+                    <signal handler="on_readonly_button_toggled" name="toggled"/>
+                    <child>
+                      <object class="GtkImage" id="readonly_image1">
+                        <property name="visible">True</property>
+                        <property name="icon-name">emblem-readonly</property>
+                      </object>
+                    </child>
+                  </object>
+                  <packing>
+                    <property name="expand">False</property>
+                    <property name="fill">True</property>
+                  </packing>
+                </child>
+                <child>
                   <object class="HistoryFileEntry" id="fileentry1">
                     <property name="visible">True</property>
                     <property name="history-id">fileentry</property>
@@ -167,6 +203,24 @@
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
                 <child>
+                  <object class="GtkToggleButton" id="readonlytoggle0">
+                    <property name="visible">True</property>
+                    <property name="can_focus">False</property>
+                    <property name="relief">none</property>
+                    <signal handler="on_readonly_button_toggled" name="toggled"/>
+                    <child>
+                      <object class="GtkImage" id="readonly_image0">
+                        <property name="visible">True</property>
+                        <property name="icon-name">emblem-readonly</property>
+                      </object>
+                    </child>
+                  </object>
+                  <packing>
+                    <property name="expand">False</property>
+                    <property name="fill">True</property>
+                  </packing>
+                </child>
+                <child>
                   <object class="HistoryFileEntry" id="fileentry0">
                     <property name="visible">True</property>
                     <property name="history-id">fileentry</property>



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