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
cda51794
Commit
cda51794
authored
20 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
we can now set ask_online_status and ask_offline_status in the preferences window
parent
4cdda899
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
plugins/gtkgui/config.py
+17
-1
17 additions, 1 deletion
plugins/gtkgui/config.py
plugins/gtkgui/gtkgui.glade
+2
-0
2 additions, 0 deletions
plugins/gtkgui/gtkgui.glade
with
19 additions
and
1 deletion
plugins/gtkgui/config.py
+
17
−
1
View file @
cda51794
...
...
@@ -165,8 +165,10 @@ class preferences_window:
"""
On Use Tabbed Chat Window Checkbutton Toggled
"""
if
widget
.
get_active
():
self
.
plugin
.
config
[
'
usetabbedchat
'
]
=
1
#TODO: merge opened chat windows
else
:
self
.
plugin
.
config
[
'
usetabbedchat
'
]
=
0
#TODO: split the tabbed chat window
def
on_tray_icon_checkbutton_toggled
(
self
,
widget
):
"""
On Tray Icon Checkbutton Toggled
"""
...
...
@@ -234,7 +236,21 @@ class preferences_window:
self
.
plugin
.
roster
.
mkemoticons
()
def
on_emoticons_treeview_row_changed
(
self
,
model
,
path
,
iter
):
print
'
row-changed
'
print
'
row-changed
'
def
on_prompt_online_status_message_checkbutton_toggled
(
self
,
widget
):
"""
On Prompt Online Status Message Checkbutton Toggled
"""
if
widget
.
get_active
():
self
.
plugin
.
config
[
'
ask_online_status
'
]
=
1
else
:
self
.
plugin
.
config
[
'
ask_online_status
'
]
=
0
def
on_prompt_offline_status_message_checkbutton_toggled
(
self
,
widget
):
"""
On Prompt Offline Status Message Checkbutton Toggled
"""
if
widget
.
get_active
():
self
.
plugin
.
config
[
'
ask_offline_status
'
]
=
1
else
:
self
.
plugin
.
config
[
'
ask_offline_status
'
]
=
0
def
write_cfg
(
self
):
#FIXME: (nk) instant apply
"""
Save preferences in config File and apply them
"""
...
...
This diff is collapsed.
Click to expand it.
plugins/gtkgui/gtkgui.glade
+
2
−
0
View file @
cda51794
...
...
@@ -4621,6 +4621,7 @@ on the server as a vCard</property>
<property
name=
"active"
>
False
</property>
<property
name=
"inconsistent"
>
False
</property>
<property
name=
"draw_indicator"
>
True
</property>
<signal
name=
"toggled"
handler=
"on_prompt_online_status_message_checkbutton_toggled"
last_modification_time=
"Sun, 06 Mar 2005 23:15:43 GMT"
/>
</widget>
<packing>
<property
name=
"padding"
>
0
</property>
...
...
@@ -4640,6 +4641,7 @@ on the server as a vCard</property>
<property
name=
"active"
>
False
</property>
<property
name=
"inconsistent"
>
False
</property>
<property
name=
"draw_indicator"
>
True
</property>
<signal
name=
"toggled"
handler=
"on_prompt_offline_status_message_checkbutton_toggled"
last_modification_time=
"Sun, 06 Mar 2005 23:18:34 GMT"
/>
</widget>
<packing>
<property
name=
"padding"
>
0
</property>
...
...
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