X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=examples%2Fhildon-icon-sizes-example.c;h=ae54bc92e7bfc9163746c722ef0e60113d06353b;hb=709da29592db17f2f06f9a550831172a821b2895;hp=d7d362f1c9ea36c830e325ecbcdee138d71df38b;hpb=58a835879660678db98c3c928b6ff1a15c6c554c;p=hildon diff --git a/examples/hildon-icon-sizes-example.c b/examples/hildon-icon-sizes-example.c index d7d362f..ae54bc9 100644 --- a/examples/hildon-icon-sizes-example.c +++ b/examples/hildon-icon-sizes-example.c @@ -8,7 +8,7 @@ * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; version 2.1 of - * the License. + * the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of @@ -26,20 +26,27 @@ #include #include #include -#include "hildon.h" +#include int -main (int argc, - char **args) +main (int argc, + char **argv) { - gtk_init (&argc, &args); + hildon_gtk_init (&argc, &argv); + g_debug ("Extra small pixel size: %d", HILDON_ICON_PIXEL_SIZE_XSMALL); g_debug ("Small pixel size: %d", HILDON_ICON_PIXEL_SIZE_SMALL); - g_debug ("Wizard pixel size: %d", HILDON_ICON_PIXEL_SIZE_WIZARD); + g_debug ("Stylus pixel size: %d", HILDON_ICON_PIXEL_SIZE_STYLUS); + g_debug ("Finger pixel size: %d", HILDON_ICON_PIXEL_SIZE_FINGER); + g_debug ("Thumb pixel size: %d", HILDON_ICON_PIXEL_SIZE_THUMB); + g_debug ("Large pixel size: %d", HILDON_ICON_PIXEL_SIZE_LARGE); + g_debug ("Extra large pixel size: %d", HILDON_ICON_PIXEL_SIZE_XLARGE); +#ifndef HILDON_DISABLE_DEPRECATED g_debug ("Toolbar pixel size: %d", HILDON_ICON_PIXEL_SIZE_TOOLBAR); - g_debug ("Note pixel size: %d", HILDON_ICON_PIXEL_SIZE_NOTE); - g_debug ("Big note pixel size: %d", HILDON_ICON_PIXEL_SIZE_BIG_NOTE); - +#else + g_debug ("Toolbar pixel size: %d", HILDON_ICON_PIXEL_SIZE_FINGER); +#endif + return 0; }