[meld: 39/63] filediff: Use symbolic icons for per-view file saving



commit 376d557f4bd003f8a39975e4fe3df7f6add2ced7
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Sep 27 08:09:30 2015 +1000

    filediff: Use symbolic icons for per-view file saving

 data/ui/filediff.ui |    9 +++------
 meld/filediff.py    |    5 +++--
 2 files changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/data/ui/filediff.ui b/data/ui/filediff.ui
index 4e5d8cc..b381ac4 100644
--- a/data/ui/filediff.ui
+++ b/data/ui/filediff.ui
@@ -333,11 +333,10 @@
                 </child>
                 <child>
                   <object class="GtkToolButton" id="file_save_button2">
-                    <property name="stock-id">gtk-save</property>
+                    <property name="icon-name">document-save</property>
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
                     <property name="receives_default">False</property>
-                    <property name="use_underline">True</property>
                     <signal name="clicked" handler="on_file_save_button_clicked" swapped="no"/>
                   </object>
                 </child>
@@ -404,11 +403,10 @@
                 </child>
                 <child>
                   <object class="GtkToolButton" id="file_save_button1">
-                    <property name="stock-id">gtk-save</property>
+                    <property name="icon-name">document-save-symbolic</property>
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
                     <property name="receives_default">False</property>
-                    <property name="use_underline">True</property>
                     <signal name="clicked" handler="on_file_save_button_clicked" swapped="no"/>
                   </object>
                 </child>
@@ -475,11 +473,10 @@
                 </child>
                 <child>
                   <object class="GtkToolButton" id="file_save_button0">
-                    <property name="stock-id">gtk-save</property>
+                    <property name="icon-name">document-save-symbolic</property>
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
                     <property name="receives_default">False</property>
-                    <property name="use_underline">True</property>
                     <signal name="clicked" handler="on_file_save_button_clicked" swapped="no"/>
                   </object>
                 </child>
diff --git a/meld/filediff.py b/meld/filediff.py
index bab5ae5..ef448e9 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -1003,8 +1003,9 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
             if buf.data.modified:
                 shortnames[i] += "*"
             self.file_save_button[i].set_sensitive(buf.data.modified)
-            self.file_save_button[i].props.stock_id = (
-                Gtk.STOCK_SAVE if buf.data.writable else Gtk.STOCK_SAVE_AS)
+            self.file_save_button[i].props.icon_name = (
+                'document-save-symbolic' if buf.data.writable else
+                'document-save-as-symbolic')
 
         label = self.meta.get("tablabel", "")
         if label:


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