]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
netdomjoin-gui: disable annoying "reboot now" dialog.
authorGünther Deschner <gd@samba.org>
Wed, 4 Jun 2008 23:11:23 +0000 (01:11 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 4 Jun 2008 23:11:23 +0000 (01:11 +0200)
Guenther
(This used to be commit 8f0c5f1bedaae7a86ca671cdb2ba798079ec1d84)

source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c

index dd4e4ad394dee200aadf71c34080d7a03b31b066..bfd4fea87eec47fc3eb901f33f070e75378830ac 100644 (file)
@@ -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));
        }