diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-08-19 09:50:54 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:58:10 -0500 |
commit | e60139b81f3f642b90f1f10e0d3adab6421c8a81 (patch) | |
tree | f46efd9ade0e20e7902e88475266620577b3b7d5 /source4/gtk/tools | |
parent | 8dfd1daf30bcbf9bceeaaf3b5eddf24b9e513a6f (diff) | |
download | samba-e60139b81f3f642b90f1f10e0d3adab6421c8a81.tar.gz samba-e60139b81f3f642b90f1f10e0d3adab6421c8a81.tar.bz2 samba-e60139b81f3f642b90f1f10e0d3adab6421c8a81.zip |
r1907: init the configuration
and fix compiler warning
metze
(This used to be commit c358f11406e8aca68325a40c6bbed78c53ac024f)
Diffstat (limited to 'source4/gtk/tools')
-rw-r--r-- | source4/gtk/tools/gregedit.c | 3 | ||||
-rw-r--r-- | source4/gtk/tools/gwcrontab.c | 6 | ||||
-rw-r--r-- | source4/gtk/tools/gwsam.c | 5 |
3 files changed, 13 insertions, 1 deletions
diff --git a/source4/gtk/tools/gregedit.c b/source4/gtk/tools/gregedit.c index 0ec5c8e45c..081028ee18 100644 --- a/source4/gtk/tools/gregedit.c +++ b/source4/gtk/tools/gregedit.c @@ -605,6 +605,9 @@ static GtkWidget* create_savefilewin (void) POPT_TABLEEND }; + lp_load(dyn_CONFIGFILE,True,False,False); + load_interfaces(); + gtk_init (&argc, &argv); pc = poptGetContext(argv[0], argc, (const char **) argv, long_options,0); diff --git a/source4/gtk/tools/gwcrontab.c b/source4/gtk/tools/gwcrontab.c index aa5495bcc0..ed45ca7704 100644 --- a/source4/gtk/tools/gwcrontab.c +++ b/source4/gtk/tools/gwcrontab.c @@ -521,9 +521,13 @@ static GtkWidget*create_new_job_dialog (void) int main(int argc, char **argv) { + lp_load(dyn_CONFIGFILE,True,False,False); + load_interfaces(); + gtk_init(&argc, &argv); mainwin = create_mainwindow(); gtk_widget_show(mainwin); gtk_main(); -} + return 0; +} diff --git a/source4/gtk/tools/gwsam.c b/source4/gtk/tools/gwsam.c index 2ca6363a6d..31bbf002de 100644 --- a/source4/gtk/tools/gwsam.c +++ b/source4/gtk/tools/gwsam.c @@ -402,8 +402,13 @@ create_mainwindow (void) int main(int argc, char **argv) { + lp_load(dyn_CONFIGFILE,True,False,False); + load_interfaces(); + gtk_init(&argc, &argv); mainwin = create_mainwindow(); gtk_widget_show(mainwin); gtk_main(); + + return 0; } |