summaryrefslogtreecommitdiff
path: root/main.cpp
blob: b5ddb6f7fb806d9cb6c8548a54e357e6c3c2db7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <glib.h>
#include<libnotify/notify.h>
#include <gtk/gtk.h>
#include "logging.h"
#include "totimer.h"

int main(int argc, char** argv)
{
    if (argc<2)
        return 0;
    gtk_init(&argc, &argv);
    notify_init("pomodori");
    tres lastres;
    lastres.time=0;
    lastres.reason=argv[1];
    settimer(&lastres,POTIME);
    gtk_main();
    return 0;
}