mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-11-17 07:46:03 +00:00
call-window: codestyle
This commit is contained in:
parent
989a52fac5
commit
b083e588fa
1 changed files with 22 additions and 30 deletions
|
@ -63,8 +63,7 @@ G_DEFINE_TYPE (CallsCallWindow, calls_call_window, GTK_TYPE_APPLICATION_WINDOW);
|
|||
static void
|
||||
session_inhibit (CallsCallWindow *self, gboolean inhibit)
|
||||
{
|
||||
if (inhibit)
|
||||
{
|
||||
if (inhibit) {
|
||||
if (self->inhibit_cookie == 0)
|
||||
self->inhibit_cookie =
|
||||
gtk_application_inhibit (gtk_window_get_application (GTK_WINDOW (self)),
|
||||
|
@ -74,9 +73,7 @@ session_inhibit (CallsCallWindow *self, gboolean inhibit)
|
|||
GTK_APPLICATION_INHIBIT_LOGOUT |
|
||||
GTK_APPLICATION_INHIBIT_SWITCH,
|
||||
"call active");
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
if (self->inhibit_cookie != 0)
|
||||
gtk_application_uninhibit (gtk_window_get_application (GTK_WINDOW (self)),
|
||||
self->inhibit_cookie);
|
||||
|
@ -94,12 +91,9 @@ update_visibility (CallsCallWindow *self)
|
|||
gtk_widget_set_visible (GTK_WIDGET (self), calls > 0);
|
||||
gtk_widget_set_sensitive (GTK_WIDGET (self->show_calls), calls > 1);
|
||||
|
||||
if (calls == 0)
|
||||
{
|
||||
if (calls == 0) {
|
||||
gtk_stack_set_visible_child_name (self->main_stack, "calls");
|
||||
}
|
||||
else if (calls == 1)
|
||||
{
|
||||
} else if (calls == 1) {
|
||||
gtk_stack_set_visible_child_name (self->main_stack, "active-call");
|
||||
}
|
||||
|
||||
|
@ -282,9 +276,7 @@ dispose (GObject *object)
|
|||
CallsCallWindow *self = CALLS_CALL_WINDOW (object);
|
||||
|
||||
if (self->calls)
|
||||
{
|
||||
remove_calls (self);
|
||||
}
|
||||
|
||||
g_clear_object (&self->calls);
|
||||
|
||||
|
|
Loading…
Reference in a new issue