1
/*
2
 * Copyright (C) 2010-2012 Jiri Techet <techet@gmail.com>
3
 *
4
 * This library is free software; you can redistribute it and/or
5
 * modify it under the terms of the GNU Lesser General Public
6
 * License as published by the Free Software Foundation; either
7
 * version 2.1 of the License, or (at your option) any later version.
8
 *
9
 * This library is distributed in the hope that it will be useful,
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12
 * Lesser General Public License for more details.
13
 *
14
 * You should have received a copy of the GNU Lesser General Public
15
 * License along with this library; if not, write to the Free Software
16
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17
 */
18
19
#include <champlain/champlain.h>
20
21
int
22
main (int argc, char *argv[])
23
{
24
  ClutterActor *actor, *stage;
25
26
  if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
27
    return 1;
28
29
  stage = clutter_stage_new ();
30
  clutter_actor_set_size (stage, 800, 600);
31
  g_signal_connect (stage, "destroy", G_CALLBACK (clutter_main_quit), NULL);
32
33
  /* Create the map view */
34
  actor = champlain_view_new ();
35
  clutter_actor_set_size (CLUTTER_ACTOR (actor), 800, 600);
36
  clutter_container_add_actor (CLUTTER_CONTAINER (stage), actor);
37
38
  clutter_actor_show (stage);
39
  clutter_main ();
40
41
  return 0;
42
}