summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/gtk/tools/gwsam.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source4/gtk/tools/gwsam.c b/source4/gtk/tools/gwsam.c
index 75ff04f9cc..951096ddef 100644
--- a/source4/gtk/tools/gwsam.c
+++ b/source4/gtk/tools/gwsam.c
@@ -26,6 +26,7 @@ struct policy_handle sam_handle;
struct dcerpc_pipe *sam_pipe = NULL;
struct policy_handle domain_handle;
GtkWidget *mainwin;
+GtkWidget *seldomain;
void update_grouplist(void)
{
@@ -96,6 +97,10 @@ on_select_domain_activate (GtkMenuItem *menuitem,
return;
}
domain_handle = gtk_select_domain_dialog_get_handle(d);
+
+ update_userlist();
+ update_grouplist();
+
gtk_widget_destroy(GTK_WIDGET(d));
}
@@ -140,10 +145,8 @@ void on_connect_activate (GtkMenuItem *menuitem, gpointer user_data)
return;
}
+ gtk_widget_set_sensitive (seldomain, TRUE);
gtk_widget_destroy(GTK_WIDGET(d));
-
- update_userlist();
- update_grouplist();
}
void
@@ -216,7 +219,6 @@ create_mainwindow (void)
GtkWidget *new1;
GtkWidget *separatormenuitem1;
GtkWidget *quit;
- GtkWidget *seldomain;
GtkWidget *policies;
GtkWidget *policies_menu;
GtkWidget *account;