From d8f85bac2fc10d8fcc7e4b675c98301a8791a005 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 25 Apr 2006 09:57:18 +0000 Subject: r15235: fix all gtk tools... metze (This used to be commit c14fbc9aadbb8e4fbc1f07a65b604979638383b9) --- source4/gtk/tools/gepdump.c | 3 ++- source4/gtk/tools/gregedit.c | 4 ++-- source4/gtk/tools/gwcrontab.c | 3 ++- source4/gtk/tools/gwsam.c | 2 ++ 4 files changed, 8 insertions(+), 4 deletions(-) (limited to 'source4/gtk/tools') diff --git a/source4/gtk/tools/gepdump.c b/source4/gtk/tools/gepdump.c index 00b13def54..5f7f346838 100644 --- a/source4/gtk/tools/gepdump.c +++ b/source4/gtk/tools/gepdump.c @@ -459,10 +459,11 @@ static GtkWidget* create_mainwindow (void) int main(int argc, char **argv) { - dcerpc_init(); lp_load(); setup_logging(argv[0], DEBUG_STDERR); + dcerpc_init(); + gtk_init(&argc, &argv); mainwin = create_mainwindow(); gtk_widget_show_all(mainwin); diff --git a/source4/gtk/tools/gregedit.c b/source4/gtk/tools/gregedit.c index 3326fff6e8..e0717187d9 100644 --- a/source4/gtk/tools/gregedit.c +++ b/source4/gtk/tools/gregedit.c @@ -968,12 +968,12 @@ int main(int argc, char *argv[]) int ret; lp_load(); - - registry_init(); setup_logging(argv[0], DEBUG_STDERR); mem_ctx = talloc_init("gregedit"); + registry_init(); + gtk_init(&argc, &argv); mainwin = create_mainwindow(); gtk_widget_show_all(mainwin); diff --git a/source4/gtk/tools/gwcrontab.c b/source4/gtk/tools/gwcrontab.c index a00b57dd0d..821787e5e3 100644 --- a/source4/gtk/tools/gwcrontab.c +++ b/source4/gtk/tools/gwcrontab.c @@ -491,10 +491,11 @@ static GtkWidget*create_new_job_dialog (void) int main(int argc, char **argv) { - dcerpc_init(); lp_load(); setup_logging(argv[0], DEBUG_STDERR); + dcerpc_init(); + gtk_init(&argc, &argv); mainwin = create_mainwindow(); gtk_widget_show_all(mainwin); diff --git a/source4/gtk/tools/gwsam.c b/source4/gtk/tools/gwsam.c index 5f274e622b..d788dfd459 100644 --- a/source4/gtk/tools/gwsam.c +++ b/source4/gtk/tools/gwsam.c @@ -403,6 +403,8 @@ int main(int argc, char **argv) lp_load(); setup_logging(argv[0], DEBUG_STDERR); + dcerpc_init(); + gtk_init(&argc, &argv); mainwin = create_mainwindow(); connect_sam(); -- cgit