2009-01-12 Alberto Garcia <agarcia@igalia.com>
[hildon] / src / hildon-calendar.c
index 4802ee0..2a1e8ee 100644 (file)
@@ -12,7 +12,7 @@
  * HldonCalendar modifications
  * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
  *
- * Contact: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
+ * Contact: Rodrigo Novo <rodrigo.novo@nokia.com>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * standard #GtkCalendar or use #HildonDateEditor for more higher-level date setting
  * operations.
  *
- */    
+ * <note>
+ *   <para>
+ * #HildonCalendar has been deprecated since Hildon 2.2 and should not
+ * be used in newly written code. Use #HildonDateSelector instead.
+ *   </para>
+ * </note>
+ */
+
+#undef                                          HILDON_DISABLE_DEPRECATED
 
 #ifdef                                          HAVE_CONFIG_H
 #include                                        <config.h>
@@ -53,6 +61,8 @@
 
 #define                                         _GNU_SOURCE /* needed for GNU nl_langinfo_l */
 
+#include                                        <locale.h>
+
 #ifdef                                          HAVE_SYS_TIME_H
 #include                                        <sys/time.h>
 #endif
 #include                                        <stdlib.h>
 #include                                        <time.h>
 #include                                        <langinfo.h>
-#include                                        <locale.h>
+
 #include                                        <glib/gprintf.h>
+#include                                        <gdk/gdkkeysyms.h>
+#include                                        <gtk/gtkprivate.h>
 
 #include                                        "hildon-calendar.h"
 #include                                        "hildon-marshalers.h"
-#include                                        <gtk/gtkdnd.h>
-#include                                        <gtk/gtkmain.h>
-#include                                        <gdk/gdkkeysyms.h>
-#include                                        <gtk/gtkprivate.h>
 #include                                        "hildon-calendar-private.h"
 
 /***************************************************************************/
@@ -3036,7 +3044,7 @@ calendar_timer                                  (gpointer data)
 
     settings = gtk_settings_get_default ();
     g_object_get (settings, "gtk-timeout-repeat", &timeout, NULL);
-    timeout *= 5;
+    timeout *= 8;
 
     GDK_THREADS_ENTER ();
 
@@ -3070,7 +3078,7 @@ start_spinning                                  (GtkWidget *widget,
 
     settings = gtk_settings_get_default ();
     g_object_get (settings, "gtk-timeout-repeat", &timeout, NULL);
-    timeout *= 5;
+    timeout *= 8;
 
     private_data->click_child = click_child;