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
22c36695
Commit
22c36695
authored
7 years ago
by
Victor Ananjevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add --icon-size option to notification dialog
parent
61bb29ad
PP-notification
PP-yad
PortProton
master
revert-image-on-top
No related merge requests found
Expand all
Show 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
notification.c
src/notification.c
+2
-2
option.c
src/option.c
+3
-0
yad.h
src/yad.h
+1
-0
No files found.
data/yad.1
View file @
22c36695
...
...
@@ -734,6 +734,9 @@ Disable exit on middle click.
.TP
.B \-\-hidden
Doesn't show icon at startup.
.TP
.B \-\-icon-size=\fISIZE\fP
Set notification icon size to \fISIZE\fP. This option doesn't works for themed icons.
.PP
See \fBNOTIFICATION\fP section for more about separators.
...
...
This diff is collapsed.
Click to expand it.
po/ru.po
View file @
22c36695
This diff is collapsed.
Click to expand it.
po/uk.po
View file @
22c36695
This diff is collapsed.
Click to expand it.
src/notification.c
View file @
22c36695
...
...
@@ -40,7 +40,6 @@ static gchar *action = NULL;
static
GSList
*
menu_data
=
NULL
;
static
gint
exit_code
;
static
gint
icon_size
=
16
;
static
void
free_menu_data
(
gpointer
data
,
gpointer
udata
)
...
...
@@ -112,7 +111,8 @@ set_icon (void)
if
(
g_file_test
(
icon
,
G_FILE_TEST_EXISTS
))
{
pixbuf
=
gdk_pixbuf_new_from_file_at_scale
(
icon
,
icon_size
,
icon_size
,
TRUE
,
&
err
);
pixbuf
=
gdk_pixbuf_new_from_file_at_scale
(
icon
,
options
.
notification_data
.
icon_size
,
options
.
notification_data
.
icon_size
,
TRUE
,
&
err
);
if
(
err
)
{
g_printerr
(
_
(
"Could not load notification icon '%s': %s
\n
"
),
icon
,
err
->
message
);
...
...
This diff is collapsed.
Click to expand it.
src/option.c
View file @
22c36695
...
...
@@ -497,6 +497,8 @@ static GOptionEntry notification_options[] = {
N_
(
"Disable exit on middle click"
),
NULL
},
{
"hidden"
,
0
,
0
,
G_OPTION_ARG_NONE
,
&
options
.
notification_data
.
hidden
,
N_
(
"Doesn't show icon at startup"
),
NULL
},
{
"icon-size"
,
0
,
0
,
G_OPTION_ARG_INT
,
&
options
.
notification_data
.
icon_size
,
N_
(
"Set icon size for fully specified icons (default - 16)"
),
N_
(
"SIZE"
)
},
{
NULL
}
};
...
...
@@ -1580,6 +1582,7 @@ yad_options_init (void)
options
.
notification_data
.
middle
=
TRUE
;
options
.
notification_data
.
hidden
=
FALSE
;
options
.
notification_data
.
menu
=
NULL
;
options
.
notification_data
.
icon_size
=
16
;
/* Initialize paned data */
options
.
paned_data
.
orient
=
GTK_ORIENTATION_VERTICAL
;
...
...
This diff is collapsed.
Click to expand it.
src/yad.h
View file @
22c36695
...
...
@@ -368,6 +368,7 @@ typedef struct {
gboolean
middle
;
gboolean
hidden
;
gchar
*
menu
;
guint
icon_size
;
}
YadNotificationData
;
typedef
struct
{
...
...
This diff is collapsed.
Click to expand it.
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