Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gajim
gajim
Commits
85f08145
Commit
85f08145
authored
Mar 30, 2004
by
Yann Leboulanger
Browse files
About window can now be closed and reopened
parent
86d3ac2b
Changes
2
Hide whitespace changes
Inline
Side-by-side
plugins/gtkgui/gtkgui.glade
View file @
85f08145
...
...
@@ -896,7 +896,7 @@ Yann Le Boulanger (asterix@crans.org)</property>
<property
name=
"label"
>
gtk-close
</property>
<property
name=
"use_stock"
>
True
</property>
<property
name=
"relief"
>
GTK_RELIEF_NORMAL
</property>
<signal
name=
"clicked"
handler=
"
gtk_widget_destroy
"
last_modification_time=
"Sun, 26 Oct 2003 20:45:42 GMT"
/>
<signal
name=
"clicked"
handler=
"
on_close_clicked
"
last_modification_time=
"Sun, 26 Oct 2003 20:45:42 GMT"
/>
</widget>
</child>
</widget>
...
...
plugins/gtkgui/gtkgui.py
View file @
85f08145
...
...
@@ -559,8 +559,9 @@ def on_close(self, widget):
"""When Close button is clicked"""
widget
.
get_toplevel
().
destroy
()
def
__init__
(
self
):
def
__init__
(
self
,
plugin
):
xml
=
gtk
.
glade
.
XML
(
GTKGUI_GLADE
,
'About'
)
self
.
plugin
=
plugin
xml
.
signal_connect
(
'gtk_widget_destroy'
,
self
.
delete_event
)
xml
.
signal_connect
(
'on_close_clicked'
,
self
.
on_close
)
...
...
@@ -1516,7 +1517,7 @@ def on_about(self, widget):
"""When about is selected :
call the about class"""
if
not
self
.
plugin
.
windows
.
has_key
(
'about'
):
self
.
plugin
.
windows
[
'about'
]
=
about_Window
()
self
.
plugin
.
windows
[
'about'
]
=
about_Window
(
self
.
plugin
)
def
on_accounts
(
self
,
widget
):
"""When accounts is seleted :
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment