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
a29309ba
Commit
a29309ba
authored
May 02, 2018
by
Victor Ananjevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some warnings
parent
e2dc4a8e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
form.c
src/form.c
+1
-1
option.c
src/option.c
+11
-0
No files found.
src/form.c
View file @
a29309ba
...
@@ -1273,7 +1273,7 @@ form_print_field (guint fn)
...
@@ -1273,7 +1273,7 @@ form_print_field (guint fn)
{
{
gchar
*
fname
;
gchar
*
fname
;
#if !GTK_CHECK_VERSION(3,0,0)
#if !GTK_CHECK_VERSION(3,0,0)
fname
=
gtk_font_button_get_font_name
(
GTK_FONT_BUTTON
(
g_slist_nth_data
(
fields
,
fn
)));
fname
=
(
gchar
*
)
gtk_font_button_get_font_name
(
GTK_FONT_BUTTON
(
g_slist_nth_data
(
fields
,
fn
)));
#else
#else
fname
=
gtk_font_chooser_get_font
(
GTK_FONT_CHOOSER
(
g_slist_nth_data
(
fields
,
fn
)));
fname
=
gtk_font_chooser_get_font
(
GTK_FONT_CHOOSER
(
g_slist_nth_data
(
fields
,
fn
)));
#endif
#endif
...
...
src/option.c
View file @
a29309ba
...
@@ -1041,6 +1041,7 @@ set_expander (const gchar * option_name, const gchar * value, gpointer data, GEr
...
@@ -1041,6 +1041,7 @@ set_expander (const gchar * option_name, const gchar * value, gpointer data, GEr
options
.
data
.
expander
=
g_strdup
(
value
);
options
.
data
.
expander
=
g_strdup
(
value
);
else
else
options
.
data
.
expander
=
""
;
options
.
data
.
expander
=
""
;
return
TRUE
;
return
TRUE
;
}
}
...
@@ -1127,6 +1128,8 @@ set_posx (const gchar * option_name, const gchar * value, gpointer data, GError
...
@@ -1127,6 +1128,8 @@ set_posx (const gchar * option_name, const gchar * value, gpointer data, GError
{
{
options
.
data
.
use_posx
=
TRUE
;
options
.
data
.
use_posx
=
TRUE
;
options
.
data
.
posx
=
atol
(
value
);
options
.
data
.
posx
=
atol
(
value
);
return
TRUE
;
}
}
static
gboolean
static
gboolean
...
@@ -1134,6 +1137,8 @@ set_posy (const gchar * option_name, const gchar * value, gpointer data, GError
...
@@ -1134,6 +1137,8 @@ set_posy (const gchar * option_name, const gchar * value, gpointer data, GError
{
{
options
.
data
.
use_posy
=
TRUE
;
options
.
data
.
use_posy
=
TRUE
;
options
.
data
.
posy
=
atol
(
value
);
options
.
data
.
posy
=
atol
(
value
);
return
TRUE
;
}
}
static
gboolean
static
gboolean
...
@@ -1193,6 +1198,8 @@ set_scroll_policy (const gchar * option_name, const gchar * value, gpointer data
...
@@ -1193,6 +1198,8 @@ set_scroll_policy (const gchar * option_name, const gchar * value, gpointer data
options
.
hscroll_policy
=
pt
;
options
.
hscroll_policy
=
pt
;
else
else
options
.
vscroll_policy
=
pt
;
options
.
vscroll_policy
=
pt
;
return
TRUE
;
}
}
#if GLIB_CHECK_VERSION(2,30,0)
#if GLIB_CHECK_VERSION(2,30,0)
...
@@ -1200,6 +1207,8 @@ static gboolean
...
@@ -1200,6 +1207,8 @@ static gboolean
set_size_format
(
const
gchar
*
option_name
,
const
gchar
*
value
,
gpointer
data
,
GError
**
err
)
set_size_format
(
const
gchar
*
option_name
,
const
gchar
*
value
,
gpointer
data
,
GError
**
err
)
{
{
options
.
common_data
.
size_fmt
=
G_FORMAT_SIZE_IEC_UNITS
;
options
.
common_data
.
size_fmt
=
G_FORMAT_SIZE_IEC_UNITS
;
return
TRUE
;
}
}
#endif
#endif
...
@@ -1210,6 +1219,8 @@ set_xid_file (const gchar * option_name, const gchar * value, gpointer data, GEr
...
@@ -1210,6 +1219,8 @@ set_xid_file (const gchar * option_name, const gchar * value, gpointer data, GEr
options
.
print_xid
=
TRUE
;
options
.
print_xid
=
TRUE
;
if
(
value
&&
value
[
0
])
if
(
value
&&
value
[
0
])
options
.
xid_file
=
g_strdup
(
value
);
options
.
xid_file
=
g_strdup
(
value
);
return
TRUE
;
}
}
static
gboolean
static
gboolean
...
...
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