mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-10-01 00:05:25 +00:00
call: Codestyle
This commit is contained in:
parent
08456c8043
commit
09699254c8
1 changed files with 31 additions and 37 deletions
|
@ -128,8 +128,7 @@ calls_call_get_property (GObject *object,
|
|||
{
|
||||
CallsCall *self = CALLS_CALL (object);
|
||||
|
||||
switch (prop_id)
|
||||
{
|
||||
switch (prop_id) {
|
||||
case PROP_INBOUND:
|
||||
g_value_set_boolean (value, calls_call_get_inbound (self));
|
||||
break;
|
||||
|
@ -462,11 +461,9 @@ calls_call_state_to_string (GString *string,
|
|||
|
||||
value = g_enum_get_value (klass, (gint)state);
|
||||
if (!value)
|
||||
{
|
||||
return g_string_printf (string,
|
||||
"Unknown call state (%d)",
|
||||
(gint)state);
|
||||
}
|
||||
|
||||
g_string_assign (string, value->value_nick);
|
||||
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);
|
||||
value = g_enum_get_value_by_nick (klass, nick);
|
||||
|
||||
if (value)
|
||||
{
|
||||
if (value) {
|
||||
*state = (CallsCallState) value->value;
|
||||
ret = TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
ret = FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue