summaryrefslogtreecommitdiff
path: root/source3/lib/netapi/examples
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-01-07 12:19:56 +0100
committerGünther Deschner <gd@samba.org>2008-01-07 12:48:21 +0100
commite6c3ac59c5adb433d6269cae7141e575da7fdc8d (patch)
tree6119750b80cfbcc501e1262d24d88ffadd7a227b /source3/lib/netapi/examples
parent6345220151c4b09380b0b461f51309c043052916 (diff)
downloadsamba-e6c3ac59c5adb433d6269cae7141e575da7fdc8d.tar.gz
samba-e6c3ac59c5adb433d6269cae7141e575da7fdc8d.tar.bz2
samba-e6c3ac59c5adb433d6269cae7141e575da7fdc8d.zip
Failure while unjoining a domain is non-critical.
Just continue joining to the workgroup in that case. Guenther (This used to be commit bf9ce2a928e3136d3bfe368f75d5b99273c5b04f)
Diffstat (limited to 'source3/lib/netapi/examples')
-rw-r--r--source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c b/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c
index d12e66bb26..1e1681ba37 100644
--- a/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c
+++ b/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c
@@ -449,14 +449,8 @@ static void callback_do_join(GtkWidget *widget,
initial_workgroup_type,
state->name_buffer_initial,
err_str);
-
- g_signal_connect_swapped(dialog, "response",
- G_CALLBACK(gtk_widget_destroy),
- dialog);
-
- gtk_widget_show(dialog);
-
- return;
+ gtk_dialog_run(GTK_DIALOG(dialog));
+ gtk_widget_destroy(dialog);
}
}