mutter/cltr.c

45 lines
836 B
C
Raw Normal View History

2005-03-22 14:53:51 +00:00
#include "cltr.h"
int
main(int argc, char **argv)
{
2005-04-07 22:46:43 +00:00
CltrWidget *win = NULL, *grid = NULL, *test = NULL, *test2 = NULL;
CltrWidget *list;
2005-03-29 23:26:36 +00:00
2005-03-24 16:46:49 +00:00
if (argc < 2)
{
g_printerr("usage: '%s' <path to not too heavily populated image dir>\n"
, argv[0]);
exit(-1);
}
2005-03-22 14:53:51 +00:00
cltr_init(&argc, &argv);
win = cltr_window_new(640, 480);
2005-04-07 22:46:43 +00:00
/*
grid = cltr_photo_grid_new(640, 480, 4, 4, argv[1]);
test = cltr_scratch_new(100, 100);
test2 = cltr_scratch_new(150, 150);
2005-03-22 14:53:51 +00:00
2005-04-03 16:13:08 +00:00
cltr_widget_add_child(win, grid, 0, 0);
2005-03-22 14:53:51 +00:00
2005-04-07 22:46:43 +00:00
cltr_widget_add_child(win, test, 320, 240);
cltr_widget_add_child(win, test2, 400, 300);
cltr_window_focus_widget(CLTR_WINDOW(win), grid);
*/
list = cltr_list_new(640,480,640, 160);
cltr_widget_add_child(win, list, 0, 0);
2005-04-03 16:13:08 +00:00
cltr_widget_show_all(win);
2005-03-22 17:25:52 +00:00
cltr_main_loop();
2005-03-22 14:53:51 +00:00
return 0;
}