Mercurial > pidgin
comparison pidgin/gtkaccount.c @ 32704:b43b8b93ea28
Use a reasonable default in VV prefs if the account isn't created yet.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Thu, 29 Dec 2011 01:49:46 +0000 |
parents | 381033b07bb1 |
children | ef4ffed09e49 |
comparison
equal
deleted
inserted
replaced
32703:d14a39e84ff1 | 32704:b43b8b93ea28 |
---|---|
1203 gtk_notebook_append_page(GTK_NOTEBOOK(dialog->notebook), | 1203 gtk_notebook_append_page(GTK_NOTEBOOK(dialog->notebook), |
1204 dialog->voice_frame, gtk_label_new_with_mnemonic(_("_Voice and Video"))); | 1204 dialog->voice_frame, gtk_label_new_with_mnemonic(_("_Voice and Video"))); |
1205 gtk_widget_show_all(dialog->voice_frame); | 1205 gtk_widget_show_all(dialog->voice_frame); |
1206 } | 1206 } |
1207 | 1207 |
1208 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(dialog->suppression_check), | 1208 if (dialog->account) { |
1209 purple_account_get_silence_suppression(dialog->account)); | 1209 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(dialog->suppression_check), |
1210 purple_account_get_silence_suppression(dialog->account)); | |
1211 } else { | |
1212 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(dialog->suppression_check), FALSE); | |
1213 } | |
1210 #endif | 1214 #endif |
1211 } | 1215 } |
1212 | 1216 |
1213 static gboolean | 1217 static gboolean |
1214 account_win_destroy_cb(GtkWidget *w, GdkEvent *event, | 1218 account_win_destroy_cb(GtkWidget *w, GdkEvent *event, |