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
454fd8db
Commit
454fd8db
authored
Jun 08, 2024
by
Vladislav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added homogeneous_row and homogeneous_column
parent
11780fdf
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
form.c
src/form.c
+2
-2
option.c
src/option.c
+5
-2
yad.h
src/yad.h
+2
-1
No files found.
src/form.c
View file @
454fd8db
...
@@ -840,8 +840,8 @@ form_create_widget (GtkWidget * dlg)
...
@@ -840,8 +840,8 @@ form_create_widget (GtkWidget * dlg)
gtk_grid_set_row_spacing
(
GTK_GRID
(
tbl
),
5
);
gtk_grid_set_row_spacing
(
GTK_GRID
(
tbl
),
5
);
gtk_grid_set_column_spacing
(
GTK_GRID
(
tbl
),
5
);
gtk_grid_set_column_spacing
(
GTK_GRID
(
tbl
),
5
);
gtk_grid_set_row_homogeneous
(
GTK_GRID
(
tbl
),
options
.
form_data
.
homogeneous
);
gtk_grid_set_row_homogeneous
(
GTK_GRID
(
tbl
),
options
.
form_data
.
homogeneous
_row
);
gtk_grid_set_column_homogeneous
(
GTK_GRID
(
tbl
),
options
.
form_data
.
homogeneous
);
gtk_grid_set_column_homogeneous
(
GTK_GRID
(
tbl
),
options
.
form_data
.
homogeneous
_column
);
if
(
options
.
common_data
.
scroll
)
if
(
options
.
common_data
.
scroll
)
{
{
...
...
src/option.c
View file @
454fd8db
...
@@ -387,7 +387,9 @@ static GOptionEntry form_options[] = {
...
@@ -387,7 +387,9 @@ static GOptionEntry form_options[] = {
N_
(
"Set alignment of filed labels (left, center or right)"
),
N_
(
"TYPE"
)
},
N_
(
"Set alignment of filed labels (left, center or right)"
),
N_
(
"TYPE"
)
},
{
"columns"
,
0
,
0
,
G_OPTION_ARG_INT
,
&
options
.
form_data
.
columns
,
{
"columns"
,
0
,
0
,
G_OPTION_ARG_INT
,
&
options
.
form_data
.
columns
,
N_
(
"Set number of columns in form"
),
N_
(
"NUMBER"
)
},
N_
(
"Set number of columns in form"
),
N_
(
"NUMBER"
)
},
{
"homogeneous"
,
0
,
0
,
G_OPTION_ARG_NONE
,
&
options
.
form_data
.
homogeneous
,
{
"homogeneous-row"
,
0
,
0
,
G_OPTION_ARG_NONE
,
&
options
.
form_data
.
homogeneous_row
,
N_
(
"Make form fields height and columns width the same size"
),
NULL
},
{
"homogeneous-column"
,
0
,
0
,
G_OPTION_ARG_NONE
,
&
options
.
form_data
.
homogeneous_column
,
N_
(
"Make form fields height and columns width the same size"
),
NULL
},
N_
(
"Make form fields height and columns width the same size"
),
NULL
},
{
"output-by-row"
,
0
,
0
,
G_OPTION_ARG_NONE
,
&
options
.
form_data
.
output_by_row
,
{
"output-by-row"
,
0
,
0
,
G_OPTION_ARG_NONE
,
&
options
.
form_data
.
output_by_row
,
N_
(
"Order output fields by rows"
),
NULL
},
N_
(
"Order output fields by rows"
),
NULL
},
...
@@ -1764,7 +1766,8 @@ yad_options_init (void)
...
@@ -1764,7 +1766,8 @@ yad_options_init (void)
options
.
form_data
.
cycle_read
=
FALSE
;
options
.
form_data
.
cycle_read
=
FALSE
;
options
.
form_data
.
align_buttons
=
FALSE
;
options
.
form_data
.
align_buttons
=
FALSE
;
options
.
form_data
.
changed_action
=
NULL
;
options
.
form_data
.
changed_action
=
NULL
;
options
.
form_data
.
homogeneous
=
FALSE
;
options
.
form_data
.
homogeneous_row
=
FALSE
;
options
.
form_data
.
homogeneous_column
=
FALSE
;
#ifdef HAVE_HTML
#ifdef HAVE_HTML
/* Initialize html data */
/* Initialize html data */
...
...
src/yad.h
View file @
454fd8db
...
@@ -349,7 +349,8 @@ typedef struct {
...
@@ -349,7 +349,8 @@ typedef struct {
gboolean
cycle_read
;
gboolean
cycle_read
;
gboolean
align_buttons
;
gboolean
align_buttons
;
gchar
*
changed_action
;
gchar
*
changed_action
;
gboolean
homogeneous
;
gboolean
homogeneous_row
;
gboolean
homogeneous_column
;
}
YadFormData
;
}
YadFormData
;
#ifdef HAVE_HTML
#ifdef HAVE_HTML
...
...
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