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
01c5333d
Commit
01c5333d
authored
May 13, 2021
by
Victor Ananjevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
homogeneous height of form fields made optional
parent
5b6497ac
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
yad.1
data/yad.1
+3
-0
ru.po
po/ru.po
+0
-0
uk.po
po/uk.po
+0
-0
option.c
src/option.c
+3
-5
No files found.
data/yad.1
View file @
01c5333d
...
...
@@ -591,6 +591,9 @@ Use specific type for extended completion. \fITYPE\fP can be \fIany\fP for match
.B \-\-scroll
Make form scrollable.
.TP
.B \-\-homogeneous
Make form fields height the same.
.TP
.B \-\-changed-action=\fICMD\fP
Run \fICMD\fP when \fICHK\fP or \fICB\fP field values are changed. Command runs with two arguments - number of changed field and its current value.
Output of a command parsing in a same manner as in \fIBTN\fP fields with \fI@\fP prefix. \fBAttention\fP - this option may slow down your dialog.
...
...
po/ru.po
View file @
01c5333d
This diff is collapsed.
Click to expand it.
po/uk.po
View file @
01c5333d
This diff is collapsed.
Click to expand it.
src/option.c
View file @
01c5333d
...
...
@@ -377,6 +377,8 @@ static GOptionEntry form_options[] = {
N_
(
"Set number of columns in form"
),
N_
(
"NUMBER"
)
},
{
"scroll"
,
0
,
0
,
G_OPTION_ARG_NONE
,
&
options
.
form_data
.
scroll
,
N_
(
"Make form scrollable"
),
NULL
},
{
"homogeneous"
,
0
,
0
,
G_OPTION_ARG_NONE
,
&
options
.
form_data
.
homogeneous
,
N_
(
"Make form fields same height"
),
NULL
},
{
"output-by-row"
,
0
,
0
,
G_OPTION_ARG_NONE
,
&
options
.
form_data
.
output_by_row
,
N_
(
"Order output fields by rows"
),
NULL
},
{
"focus-field"
,
0
,
0
,
G_OPTION_ARG_INT
,
&
options
.
form_data
.
focus_field
,
...
...
@@ -891,10 +893,6 @@ add_field (const gchar * option_name, const gchar * value, gpointer data, GError
fld
->
type
=
YAD_FIELD_SIMPLE
;
options
.
form_data
.
fields
=
g_slist_append
(
options
.
form_data
.
fields
,
fld
);
/* disable homogeneous rows if form has text field */
if
(
fld
->
type
==
YAD_FIELD_TEXT
)
options
.
form_data
.
homogeneous
=
FALSE
;
g_strfreev
(
fstr
);
return
TRUE
;
}
...
...
@@ -1741,7 +1739,7 @@ yad_options_init (void)
options
.
form_data
.
cycle_read
=
FALSE
;
options
.
form_data
.
align_buttons
=
FALSE
;
options
.
form_data
.
changed_action
=
NULL
;
options
.
form_data
.
homogeneous
=
TRU
E
;
options
.
form_data
.
homogeneous
=
FALS
E
;
#ifdef HAVE_HTML
/* Initialize html data */
...
...
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