Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
gajim
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
217
Issues
217
List
Boards
Labels
Milestones
Merge Requests
28
Merge Requests
28
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gajim
gajim
Commits
1fa8533c
Commit
1fa8533c
authored
Nov 06, 2019
by
Daniel Brötzmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Preferences: Add Open Folder for debug logs
parent
b3f938e2
Pipeline
#4468
passed with stages
in 2 minutes and 36 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
10 deletions
+49
-10
gajim/data/gui/preferences_window.ui
gajim/data/gui/preferences_window.ui
+44
-10
gajim/gtk/preferences.py
gajim/gtk/preferences.py
+5
-0
No files found.
gajim/data/gui/preferences_window.ui
View file @
1fa8533c
...
...
@@ -2504,9 +2504,14 @@ to discover one from the server. (Example: stun.iptel.org)</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkBox"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"spacing"
>
12
</property>
<child>
<object
class=
"GtkCheckButton"
id=
"enable_logging"
>
<property
name=
"label"
translatable=
"yes"
>
Enable _debug logging
</property>
<property
name=
"label"
translatable=
"yes"
>
Enable _debug logging (restart required)
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
False
</property>
<property
name=
"no_show_all"
>
True
</property>
...
...
@@ -2516,6 +2521,35 @@ to discover one from the server. (Example: stun.iptel.org)</property>
<property
name=
"draw_indicator"
>
True
</property>
<signal
name=
"toggled"
handler=
"on_enable_logging_toggled"
swapped=
"no"
/>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
<child>
<object
class=
"GtkButton"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
<property
name=
"tooltip_text"
translatable=
"yes"
>
Opens folder containing debug logs
</property>
<property
name=
"use_underline"
>
True
</property>
<signal
name=
"clicked"
handler=
"_on_debug_folder_clicked"
swapped=
"no"
/>
<child>
<object
class=
"GtkImage"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"icon_name"
>
folder-symbolic
</property>
</object>
</child>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
...
...
gajim/gtk/preferences.py
View file @
1fa8533c
...
...
@@ -19,6 +19,7 @@ from gi.repository import Gdk
from
gi.repository
import
Pango
from
gajim.common
import
app
from
gajim.common
import
configpaths
from
gajim.common
import
helpers
from
gajim.common
import
config
as
c_config
from
gajim.common
import
idle
...
...
@@ -1079,6 +1080,10 @@ class Preferences(Gtk.ApplicationWindow):
def
on_enable_logging_toggled
(
self
,
widget
):
app
.
set_debug_mode
(
widget
.
get_active
())
def
_on_debug_folder_clicked
(
self
,
_widget
):
debug_folder
=
configpaths
.
get
(
'DEBUG'
)
helpers
.
launch_file_manager
(
debug_folder
)
# Advanced Config Editor (ACE)
def
on_open_advanced_editor_button_clicked
(
self
,
_widget
):
window
=
app
.
get_app_window
(
AdvancedConfig
)
...
...
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