2006-04-16 09:40:58 -07:00
|
|
|
#include "moofileview/moofileview.h"
|
2005-11-21 00:02:23 -08:00
|
|
|
#include <gtk/gtk.h>
|
2005-08-04 23:32:53 -07:00
|
|
|
|
|
|
|
|
|
|
|
int main (int argc, char *argv[])
|
|
|
|
{
|
|
|
|
GtkWidget *window, *tree;
|
|
|
|
|
|
|
|
gtk_init (&argc, &argv);
|
2006-02-16 17:06:14 -08:00
|
|
|
// gdk_window_set_debug_updates (TRUE);
|
2005-08-04 23:32:53 -07:00
|
|
|
|
|
|
|
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
|
|
|
g_signal_connect (window, "destroy",
|
|
|
|
G_CALLBACK (gtk_main_quit), NULL);
|
|
|
|
gtk_window_set_default_size (GTK_WINDOW (window), -1, 500);
|
|
|
|
|
2006-05-13 14:09:46 -07:00
|
|
|
tree = _moo_file_view_new ();
|
2005-08-04 23:32:53 -07:00
|
|
|
gtk_container_add (GTK_CONTAINER (window), tree);
|
|
|
|
|
2006-05-13 14:09:46 -07:00
|
|
|
_moo_file_view_chdir (MOO_FILE_VIEW (tree),
|
|
|
|
g_get_home_dir (), NULL);;
|
2005-08-04 23:32:53 -07:00
|
|
|
|
|
|
|
gtk_widget_show_all (window);
|
|
|
|
|
|
|
|
gtk_main ();
|
|
|
|
return 0;
|
|
|
|
}
|