1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-14 00:17:35 +00:00

contacts-provider: Codestyle

This commit is contained in:
Evangelos Ribeiro Tzaras 2022-01-06 15:11:22 +01:00
parent bc4ed210b2
commit 8ad21b211c

View file

@ -43,6 +43,7 @@ typedef struct
gpointer user_data; gpointer user_data;
} IdleData; } IdleData;
struct _CallsContactsProvider struct _CallsContactsProvider
{ {
GObject parent_instance; GObject parent_instance;
@ -69,6 +70,7 @@ enum {
}; };
static guint signals[SIGNAL_LAST_SIGNAL]; static guint signals[SIGNAL_LAST_SIGNAL];
static void folks_remove_contact (CallsContactsProvider *self, static void folks_remove_contact (CallsContactsProvider *self,
FolksIndividual *individual); FolksIndividual *individual);
static void folks_add_contact (CallsContactsProvider *self, static void folks_add_contact (CallsContactsProvider *self,
@ -84,6 +86,7 @@ folks_individual_has_phone_numbers (FolksIndividual *individual)
return !gee_collection_get_is_empty (GEE_COLLECTION (phone_numbers)); return !gee_collection_get_is_empty (GEE_COLLECTION (phone_numbers));
} }
static void static void
folks_individual_property_changed_cb (CallsContactsProvider *self, folks_individual_property_changed_cb (CallsContactsProvider *self,
GParamSpec *pspec, GParamSpec *pspec,
@ -93,6 +96,7 @@ folks_individual_property_changed_cb (CallsContactsProvider *self,
folks_remove_contact (self, individual); folks_remove_contact (self, individual);
} }
static int static int
do_on_idle (IdleData *data) do_on_idle (IdleData *data)
{ {
@ -105,6 +109,7 @@ do_on_idle (IdleData *data)
} }
} }
static void static void
folks_add_contact (CallsContactsProvider *self, folks_add_contact (CallsContactsProvider *self,
FolksIndividual *individual) FolksIndividual *individual)
@ -155,6 +160,7 @@ folks_individuals_changed_cb (CallsContactsProvider *self,
self); self);
} }
static void static void
folks_prepare_cb (GObject *obj, folks_prepare_cb (GObject *obj,
GAsyncResult *res, GAsyncResult *res,
@ -168,6 +174,7 @@ folks_prepare_cb (GObject *obj,
g_warning ("Failed to load Folks contacts: %s", error->message); g_warning ("Failed to load Folks contacts: %s", error->message);
} }
static void static void
calls_contacts_provider_set_property (GObject *object, calls_contacts_provider_set_property (GObject *object,
guint property_id, guint property_id,
@ -267,6 +274,7 @@ calls_contacts_provider_init (CallsContactsProvider *self)
g_object_unref); g_object_unref);
} }
CallsContactsProvider * CallsContactsProvider *
calls_contacts_provider_new (CallsSettings *settings) calls_contacts_provider_new (CallsSettings *settings)
{ {