add gtkexcepthook.py to POTFILES.in and add GPL header
This commit is contained in:
parent
6aca17ecf2
commit
ee3591470b
|
@ -31,3 +31,4 @@ src/gtkgui.glade.h
|
|||
src/tooltips.py
|
||||
src/filetransfers_window.py
|
||||
src/gajim-remote.py
|
||||
src/gtkexcepthook.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
|
||||
|
|
|
@ -1,3 +1,25 @@
|
|||
## dialogs.py
|
||||
##
|
||||
## Gajim Team:
|
||||
## - Yann Le Boulanger <asterix@lagaule.org>
|
||||
## - Vincent Hanquez <tab@snarc.org>
|
||||
## - Nikos Kouremenos <kourem@gmail.com>
|
||||
## - Dimitur Kirov <dkirov@gmail.com>
|
||||
##
|
||||
## 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
|
||||
|
||||
|
|
Loading…
Reference in New Issue