Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2008-08-11 12:41:44 +0400
committerYann Leboulanger <asterix@lagaule.org>2008-08-11 12:41:44 +0400
commitf18d97b97a389c8254529b7fd9a2e80f792ca251 (patch)
tree2154c86d2ce0d976e3c957ce8a8787b0469eebf3
parent3184cb24d045d975b78065e0780afa9e999ee9cf (diff)
remove unused function
-rw-r--r--src/dialogs.py13
-rwxr-xr-xsrc/gajim.py4
2 files changed, 3 insertions, 14 deletions
diff --git a/src/dialogs.py b/src/dialogs.py
index a140e4a7b..eb22368f2 100644
--- a/src/dialogs.py
+++ b/src/dialogs.py
@@ -1137,17 +1137,6 @@ class HigDialog(gtk.MessageDialog):
vb.grab_focus()
self.show_all()
- def get_response(self):
- '''Be carefull: this function uses dialog.run() function so GUI is not updated'''
- # Give focus to top vbox
- vb = self.get_children()[0].get_children()[0]
- vb.set_flags(gtk.CAN_FOCUS)
- vb.grab_focus()
- self.show_all()
- response = self.run()
- self.destroy()
- return response
-
class FileChooserDialog(gtk.FileChooserDialog):
'''Non-blocking FileChooser Dialog around gtk.FileChooserDialog'''
def __init__(self, title_text, action, buttons, default_response,
@@ -1541,8 +1530,6 @@ class DubbleInputDialog:
'''Class for Dubble Input dialog'''
def __init__(self, title, label_str1, label_str2, input_str1=None,
input_str2=None, is_modal=True, ok_handler=None, cancel_handler=None):
- # if modal is True you also need to call get_response()
- # and ok_handler won't be used
self.xml = gtkgui_helpers.get_glade('dubbleinput_dialog.glade')
self.dialog = self.xml.get_widget('dubbleinput_dialog')
label1 = self.xml.get_widget('label1')
diff --git a/src/gajim.py b/src/gajim.py
index 45bcec6d2..3cd328dce 100755
--- a/src/gajim.py
+++ b/src/gajim.py
@@ -352,8 +352,10 @@ if pid_alive():
pritext = _('Gajim is already running')
sectext = _('Another instance of Gajim seems to be running\nRun anyway?')
dialog = dialogs.YesNoDialog(pritext, sectext)
- if dialog.get_response() != gtk.RESPONSE_YES:
+ dialog.popup()
+ if dialog.tun() != gtk.RESPONSE_YES:
sys.exit(3)
+ dialog.destroy()
# run anyway, delete pid and useless global vars
if os.path.exists(pid_filename):
os.remove(pid_filename)