Drop the 'completed' image

A user may want to download the drawing multiple times. And besides, after
switching back to the default icon theme, I couldn't find a decent icon
anyway.
pull/145/head
Peter Hutterer 2019-07-16 21:24:01 +10:00
parent ec33e3f0af
commit ec09d0c73c
2 changed files with 0 additions and 18 deletions

View File

@ -60,19 +60,6 @@
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkImage" id="image_completed">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_right">10</property>
<property name="icon_name">process-completed-symbolic</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkButton" id="btn_rotate">
<property name="visible">True</property>

View File

@ -42,8 +42,6 @@ class Drawing(Gtk.Box):
label_timestamp = Gtk.Template.Child()
image_svg = Gtk.Template.Child()
image_completed = Gtk.Template.Child()
btn_download = Gtk.Template.Child()
def __init__(self, json_data, *args, **kwargs):
super().__init__()
@ -56,7 +54,6 @@ class Drawing(Gtk.Box):
self.label_timestamp.set_text(f'{day} {hour}')
self.image_svg.set_from_file(svg.filename)
self.image_completed.set_visible(False)
self.timestamp = svg.timestamp
def refresh(self):
@ -92,8 +89,6 @@ class Drawing(Gtk.Box):
import shutil
file = dialog.get_filename()
shutil.copyfile(self.svg.filename, file)
self.image_completed.set_visible(True)
self.btn_download.set_visible(False)
# FIXME: error handling
dialog.destroy()