Set the locale, tidy up output.

2004-10-19  Matthias Clasen  <mclasen@redhat.com>

	* tests/testicontheme.c: Set the locale, tidy up output.
This commit is contained in:
Matthias Clasen 2004-10-19 04:30:35 +00:00 committed by Matthias Clasen
parent 5fedd5f8bd
commit e746e7ffb8
5 changed files with 43 additions and 21 deletions

View File

@ -1,3 +1,7 @@
2004-10-19 Matthias Clasen <mclasen@redhat.com>
* tests/testicontheme.c: Set the locale, tidy up output.
2004-10-18 Matthias Clasen <mclasen@redhat.com>
Fix #155658, Sebastien Bacher:

View File

@ -1,3 +1,7 @@
2004-10-19 Matthias Clasen <mclasen@redhat.com>
* tests/testicontheme.c: Set the locale, tidy up output.
2004-10-18 Matthias Clasen <mclasen@redhat.com>
Fix #155658, Sebastien Bacher:

View File

@ -1,3 +1,7 @@
2004-10-19 Matthias Clasen <mclasen@redhat.com>
* tests/testicontheme.c: Set the locale, tidy up output.
2004-10-18 Matthias Clasen <mclasen@redhat.com>
Fix #155658, Sebastien Bacher:

View File

@ -1,3 +1,7 @@
2004-10-19 Matthias Clasen <mclasen@redhat.com>
* tests/testicontheme.c: Set the locale, tidy up output.
2004-10-18 Matthias Clasen <mclasen@redhat.com>
Fix #155658, Sebastien Bacher:

View File

@ -2,6 +2,7 @@
#include <gtk/gtkicontheme.h>
#include <stdlib.h>
#include <string.h>
#include <locale.h>
static void
usage (void)
@ -28,6 +29,7 @@ main (int argc, char *argv[])
int i;
g_type_init ();
setlocale (LC_ALL, "");
if (argc < 3)
{
@ -73,6 +75,8 @@ main (int argc, char *argv[])
g_print ("icon for %s at %dx%d is %s\n", argv[3], size, size,
icon_info ? gtk_icon_info_get_filename (icon_info) : "<none>");
if (icon_info)
{
if (gtk_icon_info_get_embedded_rect (icon_info, &embedded_rect))
{
g_print ("Embedded rect: %d,%d %dx%d\n",
@ -88,6 +92,7 @@ main (int argc, char *argv[])
attach_points[i].x,
attach_points[i].y);
g_free (attach_points);
g_print ("\n");
}
display_name = gtk_icon_info_get_display_name (icon_info);
@ -97,6 +102,7 @@ main (int argc, char *argv[])
gtk_icon_info_free (icon_info);
}
}
else
{
g_object_unref (icon_theme);