Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yad
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladislav
yad
Commits
2dc05c8e
Commit
2dc05c8e
authored
Oct 05, 2019
by
Victor Ananjevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add debug mode
parent
9de50740
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
4 deletions
+28
-4
yad.gschema.xml.in
data/yad.gschema.xml.in
+7
-3
list.c
src/list.c
+6
-0
option.c
src/option.c
+10
-1
progress.c
src/progress.c
+3
-0
yad.h
src/yad.h
+2
-0
No files found.
data/yad.gschema.xml.in
View file @
2dc05c8e
...
...
@@ -36,13 +36,17 @@
<default>'blue'</default>
<_summary>Default color for URI in text-info dialog</_summary>
</key>
<key name="max-tab" type="i">
<default>100</default>
<_summary>Maximum number of tabs in notebook dialog</_summary>
</key>
<key name="ignore-unknown-options" type="b">
<default>true</default>
<_summary>Ignore unknown command-line options</_summary>
</key>
<key name="
max-tab" type="i
">
<default>
100
</default>
<_summary>
Maximum number of tabs in notebook dialog
</_summary>
<key name="
debug" type="b
">
<default>
false
</default>
<_summary>
Enable debug mode with information about deprecated features
</_summary>
</key>
</schema>
</schemalist>
...
...
src/list.c
View file @
2dc05c8e
...
...
@@ -1202,6 +1202,12 @@ list_create_widget (GtkWidget *dlg)
fore_col
=
back_col
=
font_col
=
-
1
;
if
(
options
.
debug
)
{
if
(
options
.
list_data
.
checkbox
||
options
.
list_data
.
radiobox
)
g_printerr
(
"YAD: WARNING: You are use --checklist or --radiolist option. Those options obsoleted and will be removed in the future"
);
}
n_cols
=
g_slist_length
(
options
.
list_data
.
columns
);
if
(
n_cols
==
0
)
{
...
...
src/option.c
View file @
2dc05c8e
...
...
@@ -1433,6 +1433,12 @@ yad_options_init (void)
options
.
xid_file
=
NULL
;
#endif
#ifndef STANDALONE
options
.
debug
=
g_settings_get_boolean
(
settings
,
"debug"
);
#else
options
.
debug
=
FALSE
;
#endif
options
.
hscroll_policy
=
GTK_POLICY_AUTOMATIC
;
options
.
vscroll_policy
=
GTK_POLICY_AUTOMATIC
;
...
...
@@ -1881,7 +1887,10 @@ yad_create_context (void)
g_option_context_set_help_enabled
(
tmp_ctx
,
TRUE
);
#ifndef STANDALONE
g_option_context_set_ignore_unknown_options
(
tmp_ctx
,
g_settings_get_boolean
(
settings
,
"ignore-unknown-options"
));
if
(
!
options
.
debug
)
g_option_context_set_ignore_unknown_options
(
tmp_ctx
,
g_settings_get_boolean
(
settings
,
"ignore-unknown-options"
));
else
g_option_context_set_ignore_unknown_options
(
tmp_ctx
,
FALSE
);
#else
g_option_context_set_ignore_unknown_options
(
tmp_ctx
,
TRUE
);
#endif
...
...
src/progress.c
View file @
2dc05c8e
...
...
@@ -240,6 +240,9 @@ progress_create_widget (GtkWidget *dlg)
{
YadProgressBar
*
bar
=
g_new0
(
YadProgressBar
,
1
);
if
(
options
.
debug
)
g_printerr
(
"YAD: WARNING: You are usinge old-style progress dialog. This features is obsolete now, please use --bar style instead"
);
if
(
options
.
progress_data
.
pulsate
)
bar
->
type
=
YAD_PROGRESS_PULSE
;
else
if
(
options
.
progress_data
.
rtl
)
...
...
src/yad.h
View file @
2dc05c8e
...
...
@@ -525,6 +525,8 @@ typedef struct {
key_t
plug
;
guint
tabnum
;
gboolean
debug
;
#ifndef G_OS_WIN32
guint
kill_parent
;
gboolean
print_xid
;
...
...
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