2006-11-01 Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
[hildon] / hildon-widgets / hildon-defines.h
index db424ab..963ca8c 100644 (file)
@@ -1,14 +1,14 @@
 /*
  * This file is part of hildon-libs
  *
- * Copyright (C) 2005 Nokia Corporation.
+ * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
  *
- * Contact: Luc Pionchon <luc.pionchon@nokia.com>
+ * Contact: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
  *
  * 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; either version 2.1 of
- * the License, or (at your option) any later version.
+ * as published by the Free Software Foundation; version 2.1 of
+ * the License.
  *
  * This library is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -26,6 +26,7 @@
 #define __HILDON_DEFINES_H__
 
 #include <gtk/gtkwindow.h>
+#include <gdk/gdkkeysyms.h>
 #include "hildon-appview.h"
 
 G_BEGIN_DECLS
@@ -62,7 +63,7 @@ struct _HildonIconSizes
   GtkIconSize image_size_indi_nokia_hands;
 };
 
-extern HildonIconSizes *hildoniconsizes;
+extern const HildonIconSizes *hildoniconsizes;
 
 #define HILDON_ICON_SIZE_CHECK_AND_GET(iconvar) (!hildoniconsizes ? hildon_icon_sizes_init (), hildoniconsizes->iconvar : hildoniconsizes->iconvar)
 
@@ -123,7 +124,7 @@ extern HildonIconSizes *hildoniconsizes;
 #define HILDON_MARGIN_TRIPLE 18
 
 #define HILDON_HARDKEY_UP         GDK_Up
-#define HILDON_HARDKEY_LEFT       GKD_Left
+#define HILDON_HARDKEY_LEFT       GDK_Left
 #define HILDON_HARDKEY_RIGHT      GDK_Right
 #define HILDON_HARDKEY_DOWN       GDK_Down
 #define HILDON_HARDKEY_SELECT     GDK_Return
@@ -134,9 +135,9 @@ extern HildonIconSizes *hildoniconsizes;
 #define HILDON_HARDKEY_INCREASE   GDK_F7
 #define HILDON_HARDKEY_DECREASE   GDK_F8
 
-gulong hildon_gtk_widget_set_logical_font (GtkWidget *widget, gchar *logicalfontname);
+gulong hildon_gtk_widget_set_logical_font (GtkWidget *widget, const gchar *logicalfontname);
 gulong hildon_gtk_widget_set_logical_color (GtkWidget *widget, GtkRcFlags rcflags,
-                                   GtkStateType state, gchar *logicalcolorname);
+                                   GtkStateType state, const gchar *logicalcolorname);
 
 G_END_DECLS
 #endif /* HILDON_DEFINES_H */