Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/ProgressDialog.py
diff options
context:
space:
mode:
Diffstat (limited to 'ProgressDialog.py')
-rw-r--r--ProgressDialog.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/ProgressDialog.py b/ProgressDialog.py
deleted file mode 100644
index c1a8f70..0000000
--- a/ProgressDialog.py
+++ /dev/null
@@ -1,28 +0,0 @@
-from gi.repository import Gtk
-from gi.repository import GObject
-from gettext import gettext as _
-
-
-class ProgressDialog(Gtk.Dialog):
-
- def __init__(self, parent):
- Gtk.Dialog.__init__(self, _('Downloading...'), parent, \
- Gtk.DialogFlags.MODAL | Gtk.DialogFlags.DESTROY_WITH_PARENT, \
- (Gtk.STOCK_CANCEL, Gtk.ResponseType.REJECT))
-
- self._activity = parent
-
- self.connect('response', self._response_cb)
-
- self._pb = Gtk.ProgressBar()
- self._pb.set_text(_('Retrieving shared image, please wait...'))
- self.vbox.add(self._pb)
-
- def _response_cb(self, dialog, response_id):
- if response_id == Gtk.ResponseType.REJECT:
- self._activity.close()
- else:
- pass
-
- def set_fraction(self, fraction):
- self._pb.set_fraction(fraction)