mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-12-13 16:07:36 +00:00
contacts-provider: Codestyle
This commit is contained in:
parent
bc4ed210b2
commit
8ad21b211c
1 changed files with 8 additions and 0 deletions
|
@ -43,6 +43,7 @@ typedef struct
|
|||
gpointer user_data;
|
||||
} IdleData;
|
||||
|
||||
|
||||
struct _CallsContactsProvider
|
||||
{
|
||||
GObject parent_instance;
|
||||
|
@ -69,6 +70,7 @@ enum {
|
|||
};
|
||||
static guint signals[SIGNAL_LAST_SIGNAL];
|
||||
|
||||
|
||||
static void folks_remove_contact (CallsContactsProvider *self,
|
||||
FolksIndividual *individual);
|
||||
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));
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
folks_individual_property_changed_cb (CallsContactsProvider *self,
|
||||
GParamSpec *pspec,
|
||||
|
@ -93,6 +96,7 @@ folks_individual_property_changed_cb (CallsContactsProvider *self,
|
|||
folks_remove_contact (self, individual);
|
||||
}
|
||||
|
||||
|
||||
static int
|
||||
do_on_idle (IdleData *data)
|
||||
{
|
||||
|
@ -105,6 +109,7 @@ do_on_idle (IdleData *data)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
folks_add_contact (CallsContactsProvider *self,
|
||||
FolksIndividual *individual)
|
||||
|
@ -155,6 +160,7 @@ folks_individuals_changed_cb (CallsContactsProvider *self,
|
|||
self);
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
folks_prepare_cb (GObject *obj,
|
||||
GAsyncResult *res,
|
||||
|
@ -168,6 +174,7 @@ folks_prepare_cb (GObject *obj,
|
|||
g_warning ("Failed to load Folks contacts: %s", error->message);
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
calls_contacts_provider_set_property (GObject *object,
|
||||
guint property_id,
|
||||
|
@ -267,6 +274,7 @@ calls_contacts_provider_init (CallsContactsProvider *self)
|
|||
g_object_unref);
|
||||
}
|
||||
|
||||
|
||||
CallsContactsProvider *
|
||||
calls_contacts_provider_new (CallsSettings *settings)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue