[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-2737-gcc1b8de

Günther Deschner gd at samba.org
Thu Jun 5 17:40:19 GMT 2008


The branch, v3-3-test has been updated
       via  cc1b8de2632e87002cac86838f2a77ab9771ce2c (commit)
       via  521ea68719524eeef827875e018bb8cba2a92e87 (commit)
      from  2870fe50af5163e30330f5a3ef21d0b7eea85ee5 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test


- Log -----------------------------------------------------------------
commit cc1b8de2632e87002cac86838f2a77ab9771ce2c
Author: Günther Deschner <gd at samba.org>
Date:   Thu Jun 5 19:04:31 2008 +0200

    netdomjoin-gui: enable NetGetJoinInformation() call after successfull joining.
    
    Now that libnetjoin reloads configuration after joining, we can rely on the
    NetGetJoinInformation() output and use it for displaying the new domain name and
    type.
    
    Guenther

commit 521ea68719524eeef827875e018bb8cba2a92e87
Author: Günther Deschner <gd at samba.org>
Date:   Thu Jun 5 19:02:09 2008 +0200

    netdomjoin-gui: fix more gtk runtime warnings.
    
    Guenther

-----------------------------------------------------------------------

Summary of changes:
 .../examples/netdomjoin-gui/netdomjoin-gui.c       |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c b/source/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c
index bfd4fea..418b9c8 100644
--- a/source/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c
+++ b/source/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c
@@ -115,6 +115,7 @@ static void callback_do_close(GtkWidget *widget,
 
 	if (data) {
 		gtk_widget_destroy(GTK_WIDGET(data));
+		data = NULL;
 	}
 }
 
@@ -150,6 +151,7 @@ static void callback_do_freeauth_and_close(GtkWidget *widget,
 	}
 	if (state->window_do_change) {
 		gtk_widget_destroy(GTK_WIDGET(state->window_do_change));
+		state->window_do_change = NULL;
 	}
 }
 
@@ -242,6 +244,7 @@ static void callback_do_exit(GtkWidget *widget,
 #endif
 	if (state->window_main) {
 		gtk_widget_destroy(GTK_WIDGET(state->window_main));
+		state->window_main = NULL;
 	}
 	do_cleanup(state);
 	exit(0);
@@ -294,12 +297,12 @@ static void callback_do_reboot(GtkWidget *widget,
 		}
 
 		debug("got new status: %s\n", buffer);
-#if 0
+
 		SAFE_FREE(state->name_buffer_new);
 		state->name_buffer_new = strdup(buffer);
-		SAFE_FREE(buffer);
 		state->name_type_new = type;
-#endif
+		state->name_buffer_initial = strdup(buffer);
+		state->name_type_initial = type;
 		NetApiBufferFree((void *)buffer);
 
 		gtk_label_set_text(GTK_LABEL(state->label_current_name_buffer),
@@ -409,6 +412,7 @@ static void callback_do_storeauth(GtkWidget *widget,
 
 	if (state->window_creds_prompt) {
 		gtk_widget_destroy(GTK_WIDGET(state->window_creds_prompt));
+		state->window_creds_prompt = NULL;
 	}
 }
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list