# HG changeset patch # User Mark Doliner # Date 1145414487 0 # Node ID d845dc5712bb958e9198769e47f195708927b387 # Parent f407d99481b8f1f2519ac13549bf809ed9171f96 [gaim-migrate @ 16063] Fix Coverity CID 164: Value returned from gaim_prefs_get_string was never used. This is extremely minor. committer: Tailor Script diff -r f407d99481b8 -r d845dc5712bb plugins/gaimrc.c --- a/plugins/gaimrc.c Wed Apr 19 02:15:07 2006 +0000 +++ b/plugins/gaimrc.c Wed Apr 19 02:41:27 2006 +0000 @@ -357,20 +357,25 @@ gaimrc_set_font_special(GtkWidget *widget, gpointer data) { GtkWidget *font_dialog = NULL; +#if 0 const char *font = NULL; +#endif font_dialog = gtk_font_selection_dialog_new(_("Select Interface Font")); g_signal_connect(G_OBJECT(font_dialog), "response", G_CALLBACK(gaimrc_font_response_special), NULL); +#if 0 + /* + * TODO Figure out a way to test for the presence of a value in the + * actual pref + */ font = gaim_prefs_get_string("/plugins/gtk/gaimrc/gtk-font-name"); - /* TODO Figure out a way to test for the presence of a value in the - * actual pref printf("font - %s.\n", font); if (font != NULL && font != "") { gtk_font_selection_set_font_name(GTK_FONT_SELECTION(GTK_FONT_SELECTION_DIALOG(font_dialog)->fontsel), gaim_prefs_get_string("/plugins/gtk/gaimrc/gtk-font-name")); } - */ +#endif gtk_window_present(GTK_WINDOW(font_dialog)); }