Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gajim-plugins
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
Evert Mouw
gajim-plugins
Commits
1e62bf73
Commit
1e62bf73
authored
11 years ago
by
Dicson
Browse files
Options
Downloads
Patches
Plain Diff
QuickRepliesPlugin,GuiForMePlugin.change buttons state when the status has changed.
Fixes #60
parent
3070c720
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
gui_for_me/gui_for_me.py
+11
-2
11 additions, 2 deletions
gui_for_me/gui_for_me.py
gui_for_me/manifest.ini
+1
-1
1 addition, 1 deletion
gui_for_me/manifest.ini
quick_replies/manifest.ini
+1
-1
1 addition, 1 deletion
quick_replies/manifest.ini
quick_replies/plugin.py
+10
-1
10 additions, 1 deletion
quick_replies/plugin.py
with
23 additions
and
5 deletions
gui_for_me/gui_for_me.py
+
11
−
2
View file @
1e62bf73
...
...
@@ -14,8 +14,10 @@ class GuiForMe(GajimPlugin):
self
.
description
=
_
(
'
Gui for the
\'
/me
\'
command.
'
)
self
.
config_dialog
=
None
# GuiForMePluginConfigDialog(self)
self
.
gui_extension_points
=
{
'
chat_control_base
'
:
(
self
.
connect_with_chat_control
,
self
.
disconnect_from_chat_control
)}
'
chat_control_base
'
:
(
self
.
connect_with_chat_control
,
self
.
disconnect_from_chat_control
),
'
chat_control_base_update_toolbar
'
:
(
self
.
update_button_state
,
None
)}
self
.
controls
=
[]
@log_calls
(
'
GuiForMePlugin
'
)
...
...
@@ -34,6 +36,13 @@ class GuiForMe(GajimPlugin):
control
.
disconnect_from_chat_control
()
self
.
controls
=
[]
@log_calls
(
'
GuiForMePlugin
'
)
def
update_button_state
(
self
,
chat_control
):
for
base
in
self
.
controls
:
if
base
.
chat_control
!=
chat_control
:
continue
base
.
button
.
set_sensitive
(
chat_control
.
msg_textview
.
get_sensitive
())
class
Base
(
object
):
def
__init__
(
self
,
plugin
,
chat_control
):
...
...
This diff is collapsed.
Click to expand it.
gui_for_me/manifest.ini
+
1
−
1
View file @
1e62bf73
[info]
name:
GUI
For
Me
short_name:
gui_for_me
version:
0.
1
version:
0.
2
description:
Gui
for
the
'/me'
command.
authors:
BomberMan
copper
...
...
This diff is collapsed.
Click to expand it.
quick_replies/manifest.ini
+
1
−
1
View file @
1e62bf73
[info]
name:
Quick
replies
short_name:
quick_replies
version:
0.0.
1
version:
0.0.
2
description:
Plugin
for
quick
insert
template
message
and
add
your
own
template
messages
authors
=
Evgeniy Popov <evgeniypopov@gmail.com>
homepage
=
http://trac-plugins.gajim.org/wiki/QuickRepliesPlugin
...
...
This diff is collapsed.
Click to expand it.
quick_replies/plugin.py
+
10
−
1
View file @
1e62bf73
...
...
@@ -16,7 +16,9 @@ class QuickRepliesPlugin(GajimPlugin):
self
.
chat_control
=
None
self
.
gui_extension_points
=
{
'
chat_control_base
'
:
(
self
.
connect_with_chat_control
,
self
.
disconnect_from_chat_control
),
}
self
.
disconnect_from_chat_control
),
'
chat_control_base_update_toolbar
'
:
(
self
.
update_button_state
,
None
)}
self
.
config_default_values
=
{
'
entry1
'
:
(
'
Hello!
'
,
''
),
'
entry2
'
:
(
'
How are you?
'
,
''
),
...
...
@@ -45,6 +47,13 @@ class QuickRepliesPlugin(GajimPlugin):
control
.
disconnect_from_chat_control
()
self
.
controls
=
[]
@log_calls
(
'
GuiForMePlugin
'
)
def
update_button_state
(
self
,
chat_control
):
for
base
in
self
.
controls
:
if
base
.
chat_control
!=
chat_control
:
continue
base
.
button
.
set_sensitive
(
chat_control
.
msg_textview
.
get_sensitive
())
class
Base
(
object
):
...
...
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