diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-02-15 11:57:43 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:10:43 -0500 |
commit | 2251186b5bd164f1ad7707a428d0b6c91297f573 (patch) | |
tree | 8e0674ec2f688aa2f90856e5cfca50b034eefc9e /source4/gtk/tools/gepdump.c | |
parent | 39713c703daa75becef7ae30da6930d80216e29c (diff) | |
download | samba-2251186b5bd164f1ad7707a428d0b6c91297f573.tar.gz samba-2251186b5bd164f1ad7707a428d0b6c91297f573.tar.xz samba-2251186b5bd164f1ad7707a428d0b6c91297f573.zip |
r5409: - add a gtk events plugin
- this is used in our gtk apps
- make the main() functions of the gtk apps look
more simular (we need to get rid of the globals
in gregedit!)
metze
(This used to be commit 1051f9b32f4a5c69a1a6928e6849c8ada047032e)
Diffstat (limited to 'source4/gtk/tools/gepdump.c')
-rw-r--r-- | source4/gtk/tools/gepdump.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/source4/gtk/tools/gepdump.c b/source4/gtk/tools/gepdump.c index 88cd9ff8b7..d445dd63cb 100644 --- a/source4/gtk/tools/gepdump.c +++ b/source4/gtk/tools/gepdump.c @@ -417,15 +417,16 @@ static GtkWidget* create_mainwindow (void) } -int main(int argc, char **argv) + int main(int argc, char **argv) { - gtk_init(&argc, &argv); gepdump_init_subsystems; lp_load(dyn_CONFIGFILE,True,False,False); load_interfaces(); - setup_logging("gepdump", True); + setup_logging(argv[0], DEBUG_STDERR); + + gtk_init(&argc, &argv); mainwin = create_mainwindow(); gtk_widget_show_all(mainwin); - gtk_main(); - return 0; + + return gtk_event_loop(); } |