aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2020-04-01 19:20:19 +0200
committerGuido Günther <agx@sigxcpu.org>2020-04-01 19:47:54 +0200
commitafd5075d8ae7459b767fce7b40ab46b73f0d5343 (patch)
treeaff2b04c6691ba470c6a122f7a2c2960b755cf09
parent91ed15f31d88f7f6217e2100ec0852fcc3d8fd0e (diff)
applet: Drop now superfluous close handling
We're using GtkApplication now
-rw-r--r--data/ui/ppm.ui1
-rwxr-xr-xsrc/prepaid-manager-applet.py13
2 files changed, 0 insertions, 14 deletions
diff --git a/data/ui/ppm.ui b/data/ui/ppm.ui
index 064adf7..44f14bf 100644
--- a/data/ui/ppm.ui
+++ b/data/ui/ppm.ui
@@ -20,7 +20,6 @@
<template class="PPMDialog" parent="GtkApplicationWindow">
<property name="can_focus">False</property>
<property name="show_menubar">False</property>
- <signal name="delete-event" handler="on_delete" swapped="no"/>
<child type="titlebar">
<object class="GtkHeaderBar">
<property name="visible">True</property>
diff --git a/src/prepaid-manager-applet.py b/src/prepaid-manager-applet.py
index 1c0b79c..3302138 100755
--- a/src/prepaid-manager-applet.py
+++ b/src/prepaid-manager-applet.py
@@ -367,10 +367,6 @@ class PPMDialog(Gtk.ApplicationWindow):
self._setup_ui()
self.show()
- def close(self):
- self.hide()
- self.destroy()
-
@property
def info_bar_container(self):
"""The widget that contains the main info bar"""
@@ -379,15 +375,6 @@ class PPMDialog(Gtk.ApplicationWindow):
def get_top_up_code(self):
return self.entry_code.get_text().strip()
- @Gtk.Template.Callback("on_close_clicked")
- def on_close_clicked(self, dummy):
- self.controller.quit()
-
- @Gtk.Template.Callback("on_delete")
- def on_delete(self, event, dummy):
- self.controller.quit()
- return False
-
@Gtk.Template.Callback("on_balance_top_up_clicked")
def on_balance_top_up_clicked(self, dummy):
self.clear_top_up_information()