summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-06-05 01:11:23 +0200
committerGünther Deschner <gd@samba.org>2008-06-05 01:11:23 +0200
commit19e5ee0e094c563521e6515294f448f7136a928f (patch)
treefb102378a44703cd2a4f4ad6bfe33bb55542fe97
parentbb58d33b6d8c21d8fad457f6d1777baad65d181c (diff)
downloadsamba-19e5ee0e094c563521e6515294f448f7136a928f.tar.gz
samba-19e5ee0e094c563521e6515294f448f7136a928f.tar.bz2
samba-19e5ee0e094c563521e6515294f448f7136a928f.zip
netdomjoin-gui: disable annoying "reboot now" dialog.
Guenther (This used to be commit 8f0c5f1bedaae7a86ca671cdb2ba798079ec1d84)
-rw-r--r--source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c b/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c
index dd4e4ad394..bfd4fea87e 100644
--- a/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c
+++ b/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c
@@ -209,8 +209,10 @@ static void callback_apply_description_change(GtkWidget *widget,
static void callback_do_exit(GtkWidget *widget,
gpointer data)
{
+#if 0
GtkWidget *dialog;
gint result;
+#endif
struct join_state *state = (struct join_state *)data;
if (!state->settings_changed) {
@@ -218,6 +220,7 @@ static void callback_do_exit(GtkWidget *widget,
return;
}
+#if 0
dialog = gtk_message_dialog_new(GTK_WINDOW(state->window_main),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_QUESTION,
@@ -236,6 +239,7 @@ static void callback_do_exit(GtkWidget *widget,
if (dialog) {
gtk_widget_destroy(GTK_WIDGET(dialog));
}
+#endif
if (state->window_main) {
gtk_widget_destroy(GTK_WIDGET(state->window_main));
}