[gtk+] Use g_snprintf instead of snprintf.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Use g_snprintf instead of snprintf.
- Date: Wed, 10 Aug 2016 10:45:53 +0000 (UTC)
commit b0f793c8e71b7d187a30a0010720ae53e7ac74ed
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Wed Aug 10 12:29:01 2016 +0200
Use g_snprintf instead of snprintf.
snprintf is not compatible with msvc.
gtk/gtkscale.c | 3 ++-
gtk/gtkspinbutton.c | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c
index 8c2f797..895438c 100644
--- a/gtk/gtkscale.c
+++ b/gtk/gtkscale.c
@@ -1934,7 +1934,8 @@ gtk_scale_real_get_layout_offsets (GtkScale *scale,
}
static gchar *
-weed_out_neg_zero (gchar *str, gint digits)
+weed_out_neg_zero (gchar *str,
+ gint digits)
{
if (str[0] == '-')
{
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c
index 452ed33..7ddaac6 100644
--- a/gtk/gtkspinbutton.c
+++ b/gtk/gtkspinbutton.c
@@ -1116,7 +1116,8 @@ measure_string_width (PangoLayout *layout,
}
static gchar *
-weed_out_neg_zero (gchar *str, gint digits)
+weed_out_neg_zero (gchar *str,
+ gint digits)
{
if (str[0] == '-')
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]