Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tray
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
tray
Commits
00651bb4
Commit
00651bb4
authored
Jan 09, 2017
by
Serge A. Zaitsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed unused parameters in functions
parent
60387140
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
example.c
example.c
+3
-1
tray.h
tray.h
+1
-0
No files found.
example.c
View file @
00651bb4
...
...
@@ -23,6 +23,7 @@ static void toggle_cb(struct tray_menu *item) {
}
static
void
hello_cb
(
struct
tray_menu
*
item
)
{
(
void
)
item
;
printf
(
"hello cb
\n
"
);
if
(
strcmp
(
tray
.
icon
,
TRAY_ICON1
)
==
0
)
{
tray
.
icon
=
TRAY_ICON2
;
...
...
@@ -33,6 +34,7 @@ static void hello_cb(struct tray_menu *item) {
}
static
void
quit_cb
(
struct
tray_menu
*
item
)
{
(
void
)
item
;
printf
(
"quit cb
\n
"
);
tray_exit
();
}
...
...
@@ -47,7 +49,7 @@ static struct tray tray = {
{
NULL
,
0
,
0
,
NULL
,
NULL
}},
};
int
main
(
int
argc
,
char
*
argv
[]
)
{
int
main
()
{
if
(
tray_init
(
&
tray
)
<
0
)
{
printf
(
"failed to create tray
\n
"
);
return
1
;
...
...
tray.h
View file @
00651bb4
...
...
@@ -30,6 +30,7 @@ static AppIndicator *indicator = NULL;
static
int
loop_result
=
0
;
static
void
_tray_menu_cb
(
GtkMenuItem
*
item
,
gpointer
data
)
{
(
void
)
item
;
struct
tray_menu
*
m
=
(
struct
tray_menu
*
)
data
;
m
->
cb
(
m
);
}
...
...
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