summaryrefslogtreecommitdiff
path: root/source4/gtk
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-10-11 14:15:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:47 -0500
commit8caf54869e43db82a2d4294d04ea8e20a63ccbf5 (patch)
tree239e79810d1a263a6c4c49ecfaccb5511c4afdae /source4/gtk
parentfe8aaa5d07eaeb54954a9a36207dbc02a6f39504 (diff)
downloadsamba-8caf54869e43db82a2d4294d04ea8e20a63ccbf5.tar.gz
samba-8caf54869e43db82a2d4294d04ea8e20a63ccbf5.tar.bz2
samba-8caf54869e43db82a2d4294d04ea8e20a63ccbf5.zip
r2915: Open domain first before enumerating users and groups
(This used to be commit 9560a6c8cc650c3a519b14c79f497e6bd9ef387e)
Diffstat (limited to 'source4/gtk')
-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;