From a75421b0190763e5e482db215d8b1e6052bdcc19 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Sat, 12 Apr 2008 23:12:53 +0200 Subject: Fix ou handling in netdomjoin-gui. The ou list was concatenated again and again... Guenther (This used to be commit 84608e165e24c68c12d40086f81684ef37f69159) --- source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3/lib/netapi/examples') diff --git a/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c b/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c index fa1bafd5ae..a7b2079f95 100644 --- a/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c +++ b/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c @@ -84,6 +84,7 @@ typedef struct join_state { uint16_t server_role; gboolean settings_changed; gboolean hostname_changed; + uint32_t stored_num_ous; } join_state; static void debug(const char *format, ...) @@ -932,11 +933,15 @@ static void callback_do_getous(GtkWidget *widget, return; } + for (i=0; istored_num_ous; i++) { + gtk_combo_box_remove_text(GTK_COMBO_BOX(state->entry_ou_list), 0); + } for (i=0; ientry_ou_list), ous[i]); } NetApiBufferFree(ous); + state->stored_num_ous = num_ous; gtk_combo_box_set_active(GTK_COMBO_BOX(state->entry_ou_list), num_ous-1); } -- cgit