2 * zavai-calendar - simple calendar tool
4 * Copyright (C) 2009 Enrico Zini <enrico@enricozini.org>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 //string VERSION = "0.1";
25 static int main (string[] args) {
26 bool opt_popup = false;
27 GLib.OptionEntry[] entries = new GLib.OptionEntry[] {
33 arg_data = &opt_popup,
34 description = "run as a popup at the specified location on screen",
35 arg_description = null },
38 Gtk.init_with_args(ref args, "", entries, null);
40 // parser = Parser(usage="usage: %prog [options]",
41 // version="%prog "+ VERSION,
42 // description="Simple interactive interface for the OpenMoko")
43 // parser.add_option("-v", "--verbose", action="store_true", help="verbose mode")
45 // (opts, args) = parser.parse_args()
47 // if not opts.verbose:
50 // # Read configuration
51 // zavai.info("Loading configuration")
52 // conf = zavai.Config()
56 // Core infrastructure
57 zavai.config = new zavai.Config();
60 var calendar = new zavai.widgets.Calendar();
62 Gtk.Window win = new Gtk.Window(Gtk.WindowType.TOPLEVEL);
65 win.set_decorated(false);
66 //win.set_resizable(false);
67 win.set_border_width(5);
68 win.set_skip_taskbar_hint(true);
69 win.set_skip_pager_hint(true);
70 // gtk_window_set_type_hint(GTK_WINDOW(win), GDK_WINDOW_TYPE_HINT_DOCK);
71 win.set_position(Gtk.WindowPosition.MOUSE);
75 win.title = "Zavai calendar";
76 win.destroy += Gtk.main_quit;
78 win.set_size_request(300, 500);
82 // # Shutdown the main loop on SIGINT
83 // def on_kill(signum, frame):
85 // signal.signal(signal.SIGINT, on_kill)
86 // signal.signal(signal.SIGTERM, on_kill)
90 // zavai.info("Shutting down")
91 //zavai.registry.shutdown();