Mercurial > pidgin.yaz
comparison src/gtkaccount.c @ 11358:fb702c34794b
[gaim-migrate @ 13580]
New protocol option added.
committer: Tailor Script <tailor@pidgin.im>
author | Bartoz Oler <bartosz@pidgin.im> |
---|---|
date | Sun, 28 Aug 2005 22:18:08 +0000 |
parents | 74e30ef571ce |
children | 3a05b53a589e |
comparison
equal
deleted
inserted
replaced
11357:f0bc5f121684 | 11358:fb702c34794b |
---|---|
231 | 231 |
232 add_login_options(dialog, dialog->top_vbox); | 232 add_login_options(dialog, dialog->top_vbox); |
233 add_user_options(dialog, dialog->top_vbox); | 233 add_user_options(dialog, dialog->top_vbox); |
234 add_protocol_options(dialog, dialog->bottom_vbox); | 234 add_protocol_options(dialog, dialog->bottom_vbox); |
235 | 235 |
236 if (!dialog->prpl_info || !dialog->prpl_info->register_user) | 236 if (!dialog->prpl_info || !dialog->prpl_info->register_user) { |
237 gtk_widget_hide(dialog->register_button); | 237 gtk_widget_hide(dialog->register_button); |
238 else | 238 } else { |
239 if (dialog->prpl_info != NULL && | |
240 (dialog->prpl_info->options & OPT_PROTO_REGISTER_NOSCREENNAME)) { | |
241 gtk_widget_set_sensitive(dialog->register_button, TRUE); | |
242 } else { | |
243 gtk_widget_set_sensitive(dialog->register_button, FALSE); | |
244 } | |
239 gtk_widget_show(dialog->register_button); | 245 gtk_widget_show(dialog->register_button); |
246 } | |
240 } | 247 } |
241 | 248 |
242 static void | 249 static void |
243 screenname_changed_cb(GtkEntry *entry, AccountPrefsDialog *dialog) | 250 screenname_changed_cb(GtkEntry *entry, AccountPrefsDialog *dialog) |
244 { | 251 { |
245 if (dialog->ok_button) | 252 if (dialog->ok_button) |
246 gtk_widget_set_sensitive(dialog->ok_button, | 253 gtk_widget_set_sensitive(dialog->ok_button, |
247 *gtk_entry_get_text(entry) != '\0'); | 254 *gtk_entry_get_text(entry) != '\0'); |
248 if (dialog->register_button) | 255 if (dialog->register_button) { |
249 gtk_widget_set_sensitive(dialog->register_button, | 256 if (dialog->prpl_info != NULL && (dialog->prpl_info->options & OPT_PROTO_REGISTER_NOSCREENNAME)) |
250 *gtk_entry_get_text(entry) != '\0'); | 257 gtk_widget_set_sensitive(dialog->register_button, TRUE); |
251 | 258 else |
259 gtk_widget_set_sensitive(dialog->register_button, | |
260 *gtk_entry_get_text(entry) != '\0'); | |
261 } | |
252 } | 262 } |
253 | 263 |
254 #if GTK_CHECK_VERSION(2,4,0) /* FILECHOOSER */ | 264 #if GTK_CHECK_VERSION(2,4,0) /* FILECHOOSER */ |
255 static void | 265 static void |
256 icon_filesel_choose_cb(GtkWidget *widget, gint response, AccountPrefsDialog *dialog) | 266 icon_filesel_choose_cb(GtkWidget *widget, gint response, AccountPrefsDialog *dialog) |