aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()