r15235: fix all gtk tools...
authorStefan Metzmacher <metze@samba.org>
Tue, 25 Apr 2006 09:57:18 +0000 (09:57 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:04:22 +0000 (14:04 -0500)
metze

source/gtk/tools/gepdump.c
source/gtk/tools/gregedit.c
source/gtk/tools/gwcrontab.c
source/gtk/tools/gwsam.c

index 00b13def54961c5ba147efd52c0208c6a7bef582..5f7f346838026df540f41c86cb6146379d93e6b4 100644 (file)
@@ -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);
index 3326fff6e805d7d739d769aae044c4387575092f..e0717187d97cb1d13af2bf8f86ed8ef99c06a102 100644 (file)
@@ -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);
index a00b57dd0d89693bc46a2a587f6003e03153e639..821787e5e3af844643e0af845a6f718cff755cac 100644 (file)
@@ -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);
index 5f274e622b029c2c5d1cc8d41a621f362e93614f..d788dfd4596776786293b2e36f537f397856129a 100644 (file)
@@ -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();