2006-10-06 Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
[hildon] / ut / hildon-clock-widgets_tests.c
index 943bd0d..735f891 100644 (file)
@@ -1,5 +1,27 @@
-/* -*- mode: C; c-file-style: "stroustrup"; indent-tabs-mode: nil; -*- */
-/* Copyright (c) 2003 Nokia Oyj*/
+/*
+ * This file is part of hildon-libs
+ *
+ * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
+ *
+ * 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; 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
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ *
+ */
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
@@ -325,7 +347,11 @@ static int test03h()
   init_test();
 
   time_editor = HILDON_TIME_EDITOR( hildon_time_editor_new () );
+#ifndef HILDON_DISABLE_DEPRECATED
   hildon_time_editor_show_seconds( time_editor, TRUE );
+#else
+  hildon_time_editor_set_show_seconds (time_editor, TRUE);
+#endif
 
   return 1;
 }
@@ -335,9 +361,11 @@ static int test03i()
 {
   HildonTimeEditor *time_editor = NULL;
 
-  
-
+#ifndef HILDON_DISABLE_DEPRECATED
   hildon_time_editor_show_seconds( time_editor, TRUE );
+#else
+  hildon_time_editor_set_show_seconds (time_editor, TRUE);
+#endif
 
   return 1;
 }