mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-13 07:10:05 +02:00
* Updated atk to 2.23.4, deleted old broken recipes * Added atk_devel and clean up * Improved Box2D recipe, now with _devel * atk white space cleanup
56 lines
1.6 KiB
Diff
56 lines
1.6 KiB
Diff
diff --git a/tests/testvalue.c b/tests/testvalue.c
|
|
index 7ec0a29..490999d 100644
|
|
--- a/tests/testvalue.c
|
|
+++ b/tests/testvalue.c
|
|
@@ -119,9 +119,10 @@ test_value_get_value_and_text (AtkValue *value,
|
|
gdouble *current_value,
|
|
gchar **description)
|
|
{
|
|
+ TestValue *self;
|
|
g_return_if_fail (TEST_IS_VALUE (value));
|
|
|
|
- TestValue *self = TEST_VALUE (value);
|
|
+ self = TEST_VALUE (value);
|
|
|
|
if (current_value != NULL)
|
|
*current_value = self->value;
|
|
@@ -133,9 +134,10 @@ test_value_get_value_and_text (AtkValue *value,
|
|
AtkRange*
|
|
test_value_get_range (AtkValue *value)
|
|
{
|
|
+ AtkRange *result;
|
|
g_return_val_if_fail (TEST_IS_VALUE (value), NULL);
|
|
|
|
- AtkRange *result = atk_range_new (LOWER_LIMIT,
|
|
+ result = atk_range_new (LOWER_LIMIT,
|
|
UPPER_LIMIT,
|
|
NULL);
|
|
|
|
@@ -153,10 +155,12 @@ test_value_get_increment (AtkValue *value)
|
|
GSList*
|
|
test_value_get_sub_ranges (AtkValue *value)
|
|
{
|
|
+ GSList *result;
|
|
+ AtkRange *range;
|
|
g_return_val_if_fail (TEST_IS_VALUE (value), NULL);
|
|
|
|
- GSList *result = NULL;
|
|
- AtkRange *range = NULL;
|
|
+ result = NULL;
|
|
+ range = NULL;
|
|
|
|
/* low */
|
|
range = atk_range_new (LOWER_LIMIT, LOW_THRESHOLD,
|
|
@@ -186,9 +190,10 @@ void
|
|
test_value_set_value (AtkValue *value,
|
|
double new_value)
|
|
{
|
|
+ TestValue *self;
|
|
g_return_if_fail (TEST_IS_VALUE (value));
|
|
|
|
- TestValue *self = TEST_VALUE (value);
|
|
+ self = TEST_VALUE (value);
|
|
|
|
if (new_value < LOWER_LIMIT)
|
|
new_value = LOWER_LIMIT;
|