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
9a6b6543
Commit
9a6b6543
authored
Jul 21, 2019
by
Victor Ananjevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add --keep-icon-size option
parent
6abb393a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
2 deletions
+9
-2
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
-0
util.c
src/util.c
+2
-2
yad.h
src/yad.h
+1
-0
No files found.
data/yad.1
View file @
9a6b6543
...
...
@@ -131,6 +131,9 @@ Set the dialog image which appears on the left side of dialog.
.B \-\-icon-theme=\fITHEME\fP
Use specified GTK icon theme instead of default.
.TP
.B \-\-keep-icon-size
Don't scale icons. This option affects icons outside icon theme.
.TP
.B \-\-expander=\fI[TEXT]\fP
Hide main widget with expander. \fITEXT\fP is an optional argument with expander's label.
.TP
...
...
po/ru.po
View file @
9a6b6543
This diff is collapsed.
Click to expand it.
po/uk.po
View file @
9a6b6543
This diff is collapsed.
Click to expand it.
src/option.c
View file @
9a6b6543
...
...
@@ -139,6 +139,8 @@ static GOptionEntry general_options[] = {
N_
(
"Set default return code"
),
N_
(
"NUMBER"
)
},
{
"selectable-labels"
,
0
,
0
,
G_OPTION_ARG_NONE
,
&
options
.
data
.
selectable_labels
,
N_
(
"Dialog text can be selected"
),
NULL
},
{
"keep-icon-size"
,
0
,
0
,
G_OPTION_ARG_NONE
,
&
options
.
data
.
keep_icon_size
,
N_
(
"Don't scale icons"
),
NULL
},
/* window settings */
{
"sticky"
,
0
,
0
,
G_OPTION_ARG_NONE
,
&
options
.
data
.
sticky
,
N_
(
"Set window sticky"
),
NULL
},
...
...
@@ -1466,6 +1468,7 @@ yad_options_init (void)
options
.
data
.
escape_ok
=
FALSE
;
options
.
data
.
always_print
=
FALSE
;
options
.
data
.
selectable_labels
=
FALSE
;
options
.
data
.
keep_icon_size
=
FALSE
;
options
.
data
.
def_resp
=
YAD_RESPONSE_OK
;
/* Initialize window options */
...
...
src/util.c
View file @
9a6b6543
...
...
@@ -77,7 +77,7 @@ stock_lookup (gchar *key, YadStock *it)
}
GdkPixbuf
*
get_pixbuf
(
gchar
*
name
,
YadIconSize
size
,
gboolean
force
)
get_pixbuf
(
gchar
*
name
,
YadIconSize
size
,
gboolean
force
)
{
gint
w
,
h
;
GdkPixbuf
*
pb
=
NULL
;
...
...
@@ -109,7 +109,7 @@ get_pixbuf (gchar * name, YadIconSize size, gboolean force)
}
/* force scaling image to specific size */
if
(
force
&&
pb
)
if
(
!
options
.
data
.
keep_icon_size
&&
force
&&
pb
)
{
gint
iw
=
gdk_pixbuf_get_width
(
pb
);
gint
ih
=
gdk_pixbuf_get_height
(
pb
);
...
...
src/yad.h
View file @
9a6b6543
...
...
@@ -220,6 +220,7 @@ typedef struct {
gboolean
escape_ok
;
gboolean
always_print
;
gboolean
selectable_labels
;
gboolean
keep_icon_size
;
GtkButtonBoxStyle
buttons_layout
;
gint
def_resp
;
/* window settings */
...
...
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