aboutsummaryrefslogtreecommitdiffstats
path: root/src/prefs-dialog.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-06-17 00:21:41 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-06-17 00:21:41 +0800
commitf8ac3a5e684be6024af756a9ac354295849f9dce (patch)
treec1d245e859eab3c921e944fe237136e7a930277a /src/prefs-dialog.c
parent559817b74ae0b6d87899b609d70c116cd6eefe7e (diff)
downloadgsoc2013-epiphany-f8ac3a5e684be6024af756a9ac354295849f9dce.tar
gsoc2013-epiphany-f8ac3a5e684be6024af756a9ac354295849f9dce.tar.gz
gsoc2013-epiphany-f8ac3a5e684be6024af756a9ac354295849f9dce.tar.bz2
gsoc2013-epiphany-f8ac3a5e684be6024af756a9ac354295849f9dce.tar.lz
gsoc2013-epiphany-f8ac3a5e684be6024af756a9ac354295849f9dce.tar.xz
gsoc2013-epiphany-f8ac3a5e684be6024af756a9ac354295849f9dce.tar.zst
gsoc2013-epiphany-f8ac3a5e684be6024af756a9ac354295849f9dce.zip
s/snprintf/g_snprintf to not break gcc 2.95
2003-06-16 Marco Pesenti Gritti <marco@it.gnome.org> * embed/mozilla/mozilla-notifiers.cpp: * lib/ephy-dialog.c: (set_config_from_color): * src/ephy-tabs-menu.c: (tab_set_action_accelerator): * src/prefs-dialog.c: (setup_font_menu), (save_font_menu), (size_spinbutton_changed_cb), (setup_size_control): * src/session.c: (session_save): s/snprintf/g_snprintf to not break gcc 2.95
Diffstat (limited to 'src/prefs-dialog.c')
-rw-r--r--src/prefs-dialog.c20
1 files changed, 10 insertions, 10 deletions
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;