summaryrefslogtreecommitdiff
path: root/source4/gtk
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-09-24 09:00:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:11 -0500
commit9dd6674a6c9d8f2f3986b7adb9e7122d0098b5a8 (patch)
tree7006451ad7a08062253380893f6cd9366772d2bf /source4/gtk
parent82b61938ac86cdca9f9394da6c291976062c5559 (diff)
downloadsamba-9dd6674a6c9d8f2f3986b7adb9e7122d0098b5a8.tar.gz
samba-9dd6674a6c9d8f2f3986b7adb9e7122d0098b5a8.tar.bz2
samba-9dd6674a6c9d8f2f3986b7adb9e7122d0098b5a8.zip
r2594: Remove call to Gtk+ 2.4 specific code
(This used to be commit fa29cecb12def7f5c74dbcd9a525a858323e6327)
Diffstat (limited to 'source4/gtk')
-rw-r--r--source4/gtk/tools/gwsam_user.c33
1 files changed, 8 insertions, 25 deletions
diff --git a/source4/gtk/tools/gwsam_user.c b/source4/gtk/tools/gwsam_user.c
index e7a322a46d..9434bc540c 100644
--- a/source4/gtk/tools/gwsam_user.c
+++ b/source4/gtk/tools/gwsam_user.c
@@ -34,6 +34,7 @@ create_user_edit_dialog (void)
GtkWidget *label5;
GtkWidget *label6;
GtkWidget *label7;
+ int i;
GtkWidget *label8;
GtkWidget *chk_mustchange;
GtkWidget *entry_fullname;
@@ -295,35 +296,17 @@ create_user_edit_dialog (void)
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
- combo_homedrive = gtk_combo_box_entry_new_text ();
+ combo_homedrive = gtk_combo_new();
gtk_widget_show (combo_homedrive);
gtk_table_attach (GTK_TABLE (table3), combo_homedrive, 1, 2, 1, 2,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (GTK_FILL), 0, 0);
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo_homedrive), "C:");
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo_homedrive), "D:");
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo_homedrive), "E:");
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo_homedrive), "F:");
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo_homedrive), "G:");
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo_homedrive), "H:");
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo_homedrive), "I:");
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo_homedrive), "J:");
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo_homedrive), "K");
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo_homedrive), "L:");
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo_homedrive), "M:");
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo_homedrive), "N:");
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo_homedrive), "O:");
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo_homedrive), "P:");
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo_homedrive), "Q:");
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo_homedrive), "R:");
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo_homedrive), "S:");
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo_homedrive), "T:");
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo_homedrive), "U:");
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo_homedrive), "V:");
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo_homedrive), "W:");
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo_homedrive), "X:");
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo_homedrive), "Y:");
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo_homedrive), "Z:");
+ for(i = 'C'; i <= 'Z'; i++)
+ {
+ char drive[3];
+ snprintf(drive, 3, "%c:", i);
+ gtk_combo_box_append_text (GTK_COMBO_BOX (combo_homedrive), drive);
+ }
label11 = gtk_label_new ("Home Directory");
gtk_widget_show (label11);