forked from AuroraMiddleware/gtk
Use g_snprintf instead of snprintf.
snprintf is not compatible with msvc.
This commit is contained in:
parent
da2e612fa8
commit
b0f793c8e7
@ -1934,7 +1934,8 @@ gtk_scale_real_get_layout_offsets (GtkScale *scale,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static gchar *
|
static gchar *
|
||||||
weed_out_neg_zero (gchar *str, gint digits)
|
weed_out_neg_zero (gchar *str,
|
||||||
|
gint digits)
|
||||||
{
|
{
|
||||||
if (str[0] == '-')
|
if (str[0] == '-')
|
||||||
{
|
{
|
||||||
|
@ -1116,7 +1116,8 @@ measure_string_width (PangoLayout *layout,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static gchar *
|
static gchar *
|
||||||
weed_out_neg_zero (gchar *str, gint digits)
|
weed_out_neg_zero (gchar *str,
|
||||||
|
gint digits)
|
||||||
{
|
{
|
||||||
if (str[0] == '-')
|
if (str[0] == '-')
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user