cm_return_if_fail(rcfile != NULL);
if (encoding != NULL)
- g_warning("Encoding is ignored\n");
+ g_warning("Encoding is ignored");
debug_print("Reading configuration...\n");
#define TRY(func) \
if (!(func)) \
{ \
- g_warning("Failed to write configuration to file\n"); \
+ g_warning("Failed to write configuration to file"); \
if (orig_fp) fclose(orig_fp); \
prefs_file_close_revert(pfile); \
g_free(rcpath); \
}
if ((pfile = prefs_write_open(rcpath)) == NULL) {
- g_warning("Failed to write configuration to file\n");
+ g_warning("Failed to write configuration to file");
if (orig_fp) fclose(orig_fp);
g_free(rcpath);
return;
if (orig_fp) fclose(orig_fp);
if (prefs_file_close(pfile) < 0)
- g_warning("Failed to write configuration to file\n");
+ g_warning("Failed to write configuration to file");
g_free(rcpath);
debug_print("Configuration is saved.\n");
*((gint *)pparam->data) = atoi(entry_str);
break;
default:
- g_warning("Invalid PrefType for GtkEntry widget: %d\n",
+ g_warning("Invalid PrefType for GtkEntry widget: %d",
pparam->type);
}
}
*str = pref_get_pref_from_entry(GTK_ENTRY(*pparam->widget));
break;
default:
- g_warning("Invalid escaped PrefType for GtkEntry widget: %d\n",
+ g_warning("Invalid escaped PrefType for GtkEntry widget: %d",
pparam->type);
}
}
itos(*((gushort *)pparam->data)));
break;
default:
- g_warning("Invalid PrefType for GtkEntry widget: %d\n",
+ g_warning("Invalid PrefType for GtkEntry widget: %d",
pparam->type);
}
}
*str ? *str : "");
break;
default:
- g_warning("Invalid escaped PrefType for GtkEntry widget: %d\n",
+ g_warning("Invalid escaped PrefType for GtkEntry widget: %d",
pparam->type);
}
}
g_free(text);
break;
default:
- g_warning("Invalid PrefType for GtkText widget: %d\n",
+ g_warning("Invalid PrefType for GtkText widget: %d",
pparam->type);
}
}
*str = pref_get_pref_from_textview(GTK_TEXT_VIEW(*pparam->widget));
break;
default:
- g_warning("Invalid escaped PrefType for GtkText widget: %d\n",
+ g_warning("Invalid escaped PrefType for GtkText widget: %d",
pparam->type);
}
}
gtk_text_buffer_insert(buffer, &iter, buf, -1);
break;
default:
- g_warning("Invalid PrefType for GtkTextView widget: %d\n",
+ g_warning("Invalid PrefType for GtkTextView widget: %d",
pparam->type);
}
}
*str ? *str : "");
break;
default:
- g_warning("Invalid escaped PrefType for GtkTextView widget: %d\n",
+ g_warning("Invalid escaped PrefType for GtkTextView widget: %d",
pparam->type);
}
}
(GTK_SPIN_BUTTON(*pparam->widget));
break;
default:
- g_warning("Invalid PrefType for GtkSpinButton widget: %d\n",
+ g_warning("Invalid PrefType for GtkSpinButton widget: %d",
pparam->type);
}
}
(gfloat)*((gushort *)pparam->data));
break;
default:
- g_warning("Invalid PrefType for GtkSpinButton widget: %d\n",
+ g_warning("Invalid PrefType for GtkSpinButton widget: %d",
pparam->type);
}
}
sections_table = g_hash_table_lookup(whole_cache, rcfile);
if (sections_table == NULL) {
- g_warning("Can't find %s in the whole cache\n", rcfile?rcfile:"(null)");
+ g_warning("Can't find %s in the whole cache", rcfile?rcfile:"(null)");
return FALSE;
}
values_table = g_hash_table_lookup(sections_table, label);