Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Erik Huelsmann
gajim
Commits
375b5640
Commit
375b5640
authored
19 years ago
by
nkour
Browse files
Options
Downloads
Patches
Plain Diff
subscription_request_window ==> Subscription_request_window
parent
f6076a52
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/dialogs.py
+3
-7
3 additions, 7 deletions
src/dialogs.py
src/gajim.py
+1
-1
1 addition, 1 deletion
src/gajim.py
with
4 additions
and
8 deletions
src/dialogs.py
+
3
−
7
View file @
375b5640
...
...
@@ -428,8 +428,7 @@ class Input_dialog:
label
.
set_text
(
label_str
)
if
input_str
:
self
.
input_entry
.
set_text
(
input_str
)
self
.
input_entry
.
select_region
(
0
,
-
1
)
# select all
self
.
input_entry
.
select_region
(
0
,
-
1
)
# select all
class
Error_dialog
:
'''
Class for error dialog
'''
...
...
@@ -443,7 +442,7 @@ class Error_dialog:
dialog
.
connect
(
'
response
'
,
self
.
on_response
)
dialog
.
show
()
class
s
ubscription_request_window
:
class
S
ubscription_request_window
:
def
__init__
(
self
,
plugin
,
jid
,
text
,
account
):
xml
=
gtk
.
glade
.
XML
(
GTKGUI_GLADE
,
'
subscription_request_window
'
,
APP
)
self
.
window
=
xml
.
get_widget
(
'
subscription_request_window
'
)
...
...
@@ -456,14 +455,11 @@ class subscription_request_window:
xml
.
signal_autoconnect
(
self
)
self
.
window
.
show_all
()
'''
Class for authorization window :
window that appears when a user wants to add us to his/her roster
'''
def
on_close_button_clicked
(
self
,
widget
):
'''
When Close button is clicked
'''
self
.
window
.
destroy
()
def
on_authorize_button_clicked
(
self
,
widget
):
'''
A
ccept the request
'''
'''
a
ccept the request
'''
gajim
.
connections
[
self
.
account
].
send_authorization
(
self
.
jid
)
self
.
window
.
destroy
()
if
not
self
.
plugin
.
roster
.
contacts
[
self
.
account
].
has_key
(
self
.
jid
):
...
...
This diff is collapsed.
Click to expand it.
src/gajim.py
+
1
−
1
View file @
375b5640
...
...
@@ -356,7 +356,7 @@ class Interface:
def
handle_event_subscribe
(
self
,
account
,
array
):
#('SUBSCRIBE', account, (jid, text))
dialogs
.
s
ubscription_request_window
(
self
,
array
[
0
],
array
[
1
],
account
)
dialogs
.
S
ubscription_request_window
(
self
,
array
[
0
],
array
[
1
],
account
)
def
handle_event_subscribed
(
self
,
account
,
array
):
#('SUBSCRIBED', account, (jid, resource))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment