cpw.qulogic.gtk3: ec00853e: Use a reasonable default in VV prefs if ...
qulogic at pidgin.im
qulogic at pidgin.im
Thu Dec 29 03:07:24 EST 2011
----------------------------------------------------------------------
Revision: ec00853efcabfa1d48bd71b861d7a5ebc5adbb05
Parent: c15768cc313db014255bd475faf4d46ddee9889f
Author: qulogic at pidgin.im
Date: 12/28/11 20:49:46
Branch: im.pidgin.cpw.qulogic.gtk3
URL: http://d.pidgin.im/viewmtn/revision/info/ec00853efcabfa1d48bd71b861d7a5ebc5adbb05
Changelog:
Use a reasonable default in VV prefs if the account isn't created yet.
Changes against parent c15768cc313db014255bd475faf4d46ddee9889f
patched pidgin/gtkaccount.c
-------------- next part --------------
============================================================
--- pidgin/gtkaccount.c f7199e6aa3f1be4f2800c342d820a7f893405036
+++ pidgin/gtkaccount.c aa9bfeb4ff01fa2bf1039c81df07915799be7b97
@@ -1205,8 +1205,12 @@ add_voice_options(AccountPrefsDialog *di
gtk_widget_show_all(dialog->voice_frame);
}
- gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(dialog->suppression_check),
- purple_account_get_silence_suppression(dialog->account));
+ if (dialog->account) {
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(dialog->suppression_check),
+ purple_account_get_silence_suppression(dialog->account));
+ } else {
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(dialog->suppression_check), FALSE);
+ }
#endif
}
More information about the Commits
mailing list