Mercurial > pidgin.yaz
comparison src/gtkaccount.c @ 5641:5e9babc828c4
[gaim-migrate @ 6054]
The Modify Account dialog shows, but don't expect it to be functional in
any way :) I had to get this out of the way to fix something else.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 01 Jun 2003 20:27:35 +0000 |
parents | 0bdfa28c678e |
children | 213e999fa5cc |
comparison
equal
deleted
inserted
replaced
5640:fb438552e4e0 | 5641:5e9babc828c4 |
---|---|
98 * Add/Modify Account dialog | 98 * Add/Modify Account dialog |
99 **************************************************************************/ | 99 **************************************************************************/ |
100 static GtkWidget * | 100 static GtkWidget * |
101 __make_protocol_menu(AccountPrefsDialog *dialog) | 101 __make_protocol_menu(AccountPrefsDialog *dialog) |
102 { | 102 { |
103 return NULL; | 103 return gtk_button_new(); |
104 } | 104 } |
105 | 105 |
106 static GtkWidget * | 106 static GtkWidget * |
107 __add_pref_box(AccountPrefsDialog *dialog, GtkWidget *parent, | 107 __add_pref_box(AccountPrefsDialog *dialog, GtkWidget *parent, |
108 const char *text, GtkWidget *widget) | 108 const char *text, GtkWidget *widget) |
116 | 116 |
117 label = gtk_label_new(text); | 117 label = gtk_label_new(text); |
118 gtk_size_group_add_widget(dialog->sg, label); | 118 gtk_size_group_add_widget(dialog->sg, label); |
119 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); | 119 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); |
120 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); | 120 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); |
121 gtk_widget_show(label); | |
121 | 122 |
122 gtk_box_pack_start(GTK_BOX(hbox), widget, TRUE, TRUE, 0); | 123 gtk_box_pack_start(GTK_BOX(hbox), widget, TRUE, TRUE, 0); |
123 gtk_widget_show(widget); | 124 gtk_widget_show(widget); |
124 | 125 |
125 return hbox; | 126 return hbox; |
138 | 139 |
139 /* cringe */ | 140 /* cringe */ |
140 dialog->login_frame = gtk_widget_get_parent(gtk_widget_get_parent(frame)); | 141 dialog->login_frame = gtk_widget_get_parent(gtk_widget_get_parent(frame)); |
141 | 142 |
142 gtk_box_reorder_child(GTK_BOX(parent), dialog->login_frame, 0); | 143 gtk_box_reorder_child(GTK_BOX(parent), dialog->login_frame, 0); |
144 gtk_widget_show(dialog->login_frame); | |
143 | 145 |
144 vbox = gtk_vbox_new(FALSE, 6); | 146 vbox = gtk_vbox_new(FALSE, 6); |
145 gtk_container_add(GTK_CONTAINER(frame), vbox); | 147 gtk_container_add(GTK_CONTAINER(frame), vbox); |
148 gtk_widget_show(vbox); | |
146 | 149 |
147 /* Protocol */ | 150 /* Protocol */ |
148 dialog->protocol_menu = __make_protocol_menu(dialog); | 151 dialog->protocol_menu = __make_protocol_menu(dialog); |
149 __add_pref_box(dialog, vbox, _("Protocol:"), dialog->protocol_menu); | 152 __add_pref_box(dialog, vbox, _("Protocol:"), dialog->protocol_menu); |
150 | 153 |
164 GtkWidget *disclosure; | 167 GtkWidget *disclosure; |
165 | 168 |
166 dialog = g_new0(AccountPrefsDialog, 1); | 169 dialog = g_new0(AccountPrefsDialog, 1); |
167 | 170 |
168 dialog->type = type; | 171 dialog->type = type; |
172 dialog->sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); | |
169 | 173 |
170 GAIM_DIALOG(win); | 174 GAIM_DIALOG(win); |
171 dialog->window = win; | 175 dialog->window = win; |
172 | 176 |
173 gtk_window_set_role(GTK_WINDOW(win), "account"); | 177 gtk_window_set_role(GTK_WINDOW(win), "account"); |
192 /* Setup the top frames. */ | 196 /* Setup the top frames. */ |
193 __add_login_options(dialog, vbox); | 197 __add_login_options(dialog, vbox); |
194 #if 0 | 198 #if 0 |
195 __add_user_options(dialog, vbox); | 199 __add_user_options(dialog, vbox); |
196 #endif | 200 #endif |
201 | |
202 gtk_widget_show(win); | |
197 } | 203 } |
198 | 204 |
199 /************************************************************************** | 205 /************************************************************************** |
200 * Accounts Dialog | 206 * Accounts Dialog |
201 **************************************************************************/ | 207 **************************************************************************/ |