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
b7fec21c
Commit
b7fec21c
authored
Aug 22, 2017
by
Jesse Lawson
Committed by
GitHub
Aug 22, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete main.c
parent
64cb5fc3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
36 deletions
+0
-36
main.c
main.c
+0
-36
No files found.
main.c
deleted
100644 → 0
View file @
64cb5fc3
#include <stdio.h>
#include "tray.h"
extern
void
toggle_cb
(
struct
tray_menu
*
item
);
extern
void
quit_cb
(
struct
tray_menu
*
item
);
struct
tray
main_tray
=
{
.
icon
=
"icon.ico"
,
.
menu
=
(
struct
tray_menu
[]){{
"Toggle me"
,
0
,
0
,
toggle_cb
,
NULL
},
{
"-"
,
0
,
0
,
NULL
,
NULL
},
{
"Quit"
,
0
,
0
,
quit_cb
,
NULL
},
{
NULL
,
0
,
0
,
NULL
,
NULL
}},
};
void
toggle_cb
(
struct
tray_menu
*
item
)
{
item
->
checked
=
!
item
->
checked
;
tray_update
(
&
main_tray
);
}
void
quit_cb
(
struct
tray_menu
*
item
)
{
tray_exit
();
}
int
main
()
{
tray_init
(
&
main_tray
);
while
(
tray_loop
(
1
)
==
0
);
tray_exit
();
return
0
;
}
\ No newline at end of file
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