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
ec077078
Commit
ec077078
authored
Mar 07, 2020
by
Victor Ananjevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix creating link field
parent
2707dfe0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
form.c
src/form.c
+10
-9
No files found.
src/form.c
View file @
ec077078
...
...
@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with YAD. If not, see <http://www.gnu.org/licenses/>.
*
* Copyright (C) 2008-20
19
, Victor Ananjevsky <ananasik@gmail.com>
* Copyright (C) 2008-20
20
, Victor Ananjevsky <ananasik@gmail.com>
*/
#include <ctype.h>
...
...
@@ -967,14 +967,15 @@ form_create_widget (GtkWidget * dlg)
break
;
case
YAD_FIELD_LINK
:
{
gchar
*
buf
=
g_strcompress
(
fld
->
name
);
e
=
gtk_link_button_new_with_label
(
""
,
buf
);
gtk_widget_set_name
(
e
,
"yad-form-link"
);
gtk_grid_attach
(
GTK_GRID
(
tbl
),
e
,
col
*
2
,
row
,
2
,
1
);
gtk_widget_set_hexpand
(
e
,
TRUE
);
fields
=
g_slist_append
(
fields
,
e
);
}
{
gchar
*
buf
=
g_strcompress
(
fld
->
name
[
0
]
?
fld
->
name
:
_
(
"Link"
));
e
=
gtk_link_button_new_with_label
(
""
,
buf
);
gtk_widget_set_name
(
e
,
"yad-form-link"
);
gtk_grid_attach
(
GTK_GRID
(
tbl
),
e
,
col
*
2
,
row
,
2
,
1
);
gtk_widget_set_hexpand
(
e
,
TRUE
);
fields
=
g_slist_append
(
fields
,
e
);
break
;
}
case
YAD_FIELD_LABEL
:
if
(
fld
->
name
[
0
])
...
...
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