/*
- * Copyright (C) 2006 Nokia Corporation.
+ * This file is a part of hildon tests
*
- * Contact: Luc Pionchon <luc.pionchon@nokia.com>
+ * Copyright (C) 2006, 2007 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; either version 2.1 of
+ * as published by the Free Software Foundation; version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
#include <glib/gprintf.h>
#include "test_suites.h"
#include "check_utils.h"
-#include "hildon-color-button.h"
+#include <hildon/hildon-color-button.h>
/* -------------------- Fixtures -------------------- */
static HildonColorButton *color_button = NULL;
gdk_color_free(b_color);
/* Test 4: Get color from GtkHBox object. */
+ ret_color->red = 99;
+ ret_color->green = 99;
+ ret_color->blue = 99;
hildon_color_button_get_color((HildonColorButton *) (aux_object), ret_color);
- if (ret_color != NULL)
+ if (ret_color->red != 99 ||
+ ret_color->green != 99 ||
+ ret_color->blue != 99)
{
gtk_widget_destroy(aux_object);
- fail ("hildon-color-button: get_color must not return any object");
+ fail ("hildon-color-button: get_color must not modify the color when launched on invalid widget");
}
gtk_widget_destroy(aux_object);
+ g_free (ret_color);
}
END_TEST