Commit 376d557f authored by Kai Willadsen's avatar Kai Willadsen

filediff: Use symbolic icons for per-view file saving

parent 3f4e62c7
......@@ -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>
......
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment