From ee3591470b427681c3945373a30b59b0cc51ef90 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Fri, 9 Sep 2005 20:26:06 +0000 Subject: [PATCH] add gtkexcepthook.py to POTFILES.in and add GPL header --- po/POTFILES.in | 1 + src/dialogs.py | 9 ++++++--- src/gtkexcepthook.py | 22 ++++++++++++++++++++++ 3 files changed, 29 insertions(+), 3 deletions(-) diff --git a/po/POTFILES.in b/po/POTFILES.in index ef94eea8e..1eadc06a6 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -31,3 +31,4 @@ src/gtkgui.glade.h src/tooltips.py src/filetransfers_window.py src/gajim-remote.py +src/gtkexcepthook.py diff --git a/src/dialogs.py b/src/dialogs.py index 38f0a9964..f8caff84d 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -498,7 +498,8 @@ class ErrorDialog(HigDialog): class ConfirmationDialogCheck(ConfirmationDialog): '''HIG compliant confirmation dialog with checkbutton.''' def __init__(self, pritext, sectext='', checktext = ''): - HigDialog.__init__(self, None, gtk.MESSAGE_WARNING, gtk.BUTTONS_CANCEL, pritext, sectext) + HigDialog.__init__(self, None, gtk.MESSAGE_WARNING, gtk.BUTTONS_CANCEL, + pritext, sectext) # add ok button manually, because we need to focus on it ok_button = self.add_button(gtk.STOCK_OK, gtk.RESPONSE_OK) @@ -512,7 +513,8 @@ class ConfirmationDialogCheck(ConfirmationDialog): class InputDialog: '''Class for Input dialog''' - def __init__(self, title, label_str, input_str = None, is_modal = True, ok_handler = None): + def __init__(self, title, label_str, input_str = None, is_modal = True, +ok_handler = None): xml = gtk.glade.XML(GTKGUI_GLADE, 'input_dialog', APP) self.dialog = xml.get_widget('input_dialog') label = xml.get_widget('label') @@ -636,7 +638,8 @@ _('You can not join a group chat unless you are connected.')).get_response() def on_join_groupchat_window_destroy(self, widget): '''close window''' - del self.plugin.windows[self.account]['join_gc'] # remove us from open windows + # remove us from open windows + del self.plugin.windows[self.account]['join_gc'] def on_join_groupchat_window_key_press_event(self, widget, event): if event.keyval == gtk.keysyms.Escape: # ESCAPE diff --git a/src/gtkexcepthook.py b/src/gtkexcepthook.py index 3872a485d..cf993f89a 100644 --- a/src/gtkexcepthook.py +++ b/src/gtkexcepthook.py @@ -1,3 +1,25 @@ +## dialogs.py +## +## Gajim Team: +## - Yann Le Boulanger +## - Vincent Hanquez +## - Nikos Kouremenos +## - Dimitur Kirov +## +## Copyright (C) 2003-2005 Gajim Team +## +## Initially written and submitted by Gustavo J. A. M. Carneiro +## +## This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published +## by the Free Software Foundation; version 2 only. +## +## This program is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## + import sys import traceback