call: Codestyle
This commit is contained in:
@@ -128,8 +128,7 @@ calls_call_get_property (GObject *object,
|
|||||||
{
|
{
|
||||||
CallsCall *self = CALLS_CALL (object);
|
CallsCall *self = CALLS_CALL (object);
|
||||||
|
|
||||||
switch (prop_id)
|
switch (prop_id) {
|
||||||
{
|
|
||||||
case PROP_INBOUND:
|
case PROP_INBOUND:
|
||||||
g_value_set_boolean (value, calls_call_get_inbound (self));
|
g_value_set_boolean (value, calls_call_get_inbound (self));
|
||||||
break;
|
break;
|
||||||
@@ -462,11 +461,9 @@ calls_call_state_to_string (GString *string,
|
|||||||
|
|
||||||
value = g_enum_get_value (klass, (gint)state);
|
value = g_enum_get_value (klass, (gint)state);
|
||||||
if (!value)
|
if (!value)
|
||||||
{
|
|
||||||
return g_string_printf (string,
|
return g_string_printf (string,
|
||||||
"Unknown call state (%d)",
|
"Unknown call state (%d)",
|
||||||
(gint)state);
|
(gint)state);
|
||||||
}
|
|
||||||
|
|
||||||
g_string_assign (string, value->value_nick);
|
g_string_assign (string, value->value_nick);
|
||||||
string->str[0] = g_ascii_toupper (string->str[0]);
|
string->str[0] = g_ascii_toupper (string->str[0]);
|
||||||
@@ -488,13 +485,10 @@ calls_call_state_parse_nick (CallsCallState *state,
|
|||||||
klass = g_type_class_ref (CALLS_TYPE_CALL_STATE);
|
klass = g_type_class_ref (CALLS_TYPE_CALL_STATE);
|
||||||
value = g_enum_get_value_by_nick (klass, nick);
|
value = g_enum_get_value_by_nick (klass, nick);
|
||||||
|
|
||||||
if (value)
|
if (value) {
|
||||||
{
|
|
||||||
*state = (CallsCallState) value->value;
|
*state = (CallsCallState) value->value;
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
ret = FALSE;
|
ret = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user