summaryrefslogtreecommitdiff
path: root/source4/gtk/tools/gwsam.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/gtk/tools/gwsam.c')
-rw-r--r--source4/gtk/tools/gwsam.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/gtk/tools/gwsam.c b/source4/gtk/tools/gwsam.c
index 7d9abde3d3..878440527e 100644
--- a/source4/gtk/tools/gwsam.c
+++ b/source4/gtk/tools/gwsam.c
@@ -420,13 +420,12 @@ create_mainwindow (void)
gwsam_init_subsystems;
lp_load(dyn_CONFIGFILE,True,False,False);
load_interfaces();
- setup_logging("gwsam", True);
+ setup_logging(argv[0], DEBUG_STDERR);
gtk_init(&argc, &argv);
mainwin = create_mainwindow();
connect_sam();
gtk_widget_show_all(mainwin);
- gtk_main();
- return 0;
+ return gtk_event_loop();
}