mutter/cltr.c

29 lines
464 B
C
Raw Normal View History

2005-03-22 09:53:51 -05:00
#include "cltr.h"
int
main(int argc, char **argv)
{
2005-04-03 12:13:08 -04:00
CltrWidget *win = NULL, *grid = NULL;
2005-03-29 18:26:36 -05:00
2005-03-24 11:46:49 -05:00
if (argc < 2)
{
g_printerr("usage: '%s' <path to not too heavily populated image dir>\n"
, argv[0]);
exit(-1);
}
2005-03-22 09:53:51 -05:00
cltr_init(&argc, &argv);
win = cltr_window_new(640, 480);
2005-04-03 12:13:08 -04:00
grid = cltr_photo_grid_new(640, 480, 3, 3, argv[1]);
2005-03-22 09:53:51 -05:00
2005-04-03 12:13:08 -04:00
cltr_widget_add_child(win, grid, 0, 0);
2005-03-22 09:53:51 -05:00
2005-04-03 12:13:08 -04:00
cltr_widget_show_all(win);
2005-03-22 12:25:52 -05:00
cltr_main_loop();
2005-03-22 09:53:51 -05:00
return 0;
}