Commit b7fec21c authored by Jesse Lawson's avatar Jesse Lawson Committed by GitHub

Delete main.c

parent 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment