diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-tabs-menu.c | 2 | ||||
-rw-r--r-- | src/prefs-dialog.c | 20 | ||||
-rw-r--r-- | src/session.c | 8 |
3 files changed, 15 insertions, 15 deletions
diff --git a/src/ephy-tabs-menu.c b/src/ephy-tabs-menu.c index 128e69395..627cf7f73 100644 --- a/src/ephy-tabs-menu.c +++ b/src/ephy-tabs-menu.c @@ -231,7 +231,7 @@ tab_set_action_accelerator (EggActionGroup *action_group, accel_key = 0; accel_number = (tab_number + 1) % 10; - snprintf (accel, 7, "<alt>%d", accel_number); + g_snprintf (accel, 7, "<alt>%d", accel_number); gtk_accelerator_parse (accel, &accel_key, &accel_mods); diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c index 4746a043b..755b12a08 100644 --- a/src/prefs-dialog.c +++ b/src/prefs-dialog.c @@ -451,8 +451,8 @@ setup_font_menu (PrefsDialog *dialog, type, &fonts, &default_font); /* Get the default font */ - snprintf (key, 255, "%s_%s_%s", CONF_RENDERING_FONT, type, - get_current_language_code (dialog)); + g_snprintf (key, 255, "%s_%s_%s", CONF_RENDERING_FONT, type, + get_current_language_code (dialog)); name = eel_gconf_get_string (key); if (name == NULL) { @@ -500,9 +500,9 @@ save_font_menu (PrefsDialog *dialog, return; } - snprintf (key, 255, "%s_%s_%s", CONF_RENDERING_FONT, - fonts_types[type], - get_current_language_code (dialog)); + g_snprintf (key, 255, "%s_%s_%s", CONF_RENDERING_FONT, + fonts_types[type], + get_current_language_code (dialog)); eel_gconf_set_string (key, name); g_free (name); } @@ -556,9 +556,9 @@ size_spinbutton_changed_cb (GtkWidget *spin, PrefsDialog *dialog) type = GPOINTER_TO_INT(g_object_get_data (G_OBJECT(spin), "type")); - snprintf (key, 255, "%s_%s", - size_prefs[type], - get_current_language_code (dialog)); + g_snprintf (key, 255, "%s_%s", + size_prefs[type], + get_current_language_code (dialog)); eel_gconf_set_integer (key, gtk_spin_button_get_value (GTK_SPIN_BUTTON (spin))); } @@ -601,8 +601,8 @@ setup_size_control (PrefsDialog *dialog, char key[255]; int size; - snprintf (key, 255, "%s_%s", pref, - get_current_language_code (dialog)); + g_snprintf (key, 255, "%s_%s", pref, + get_current_language_code (dialog)); size = eel_gconf_get_integer (key); if (size == 0) size = default_size; diff --git a/src/session.c b/src/session.c index 58b9acae9..7b99447a1 100644 --- a/src/session.c +++ b/src/session.c @@ -519,14 +519,14 @@ session_save (Session *session, gtk_window_get_position (GTK_WINDOW(wmain), &x, &y); /* set window properties */ - snprintf(buffer, 32, "%d", x); + g_snprintf(buffer, 32, "%d", x); xmlSetProp (window_node, "x", buffer); - snprintf(buffer, 32, "%d", y); + g_snprintf(buffer, 32, "%d", y); xmlSetProp (window_node, "y", buffer); - snprintf(buffer, 32, "%d", width); + g_snprintf(buffer, 32, "%d", width); xmlSetProp (window_node, "width", buffer); - snprintf(buffer, 32, "%d", height); + g_snprintf(buffer, 32, "%d", height); xmlSetProp (window_node, "height", buffer); for (l = tabs; l != NULL; l = l->next) |