1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-06-16 08:49:31 +00:00

code style: consistent whitespaces for g_autoptr

This commit is contained in:
Evangelos Ribeiro Tzaras 2021-02-11 00:38:10 +01:00
parent 5375ebbc72
commit 5d4b84470c
7 changed files with 16 additions and 16 deletions

View file

@ -75,7 +75,7 @@ handle_local_options (GApplication *application,
GVariantDict *options)
{
gboolean ok;
g_autoptr(GError) error = NULL;
g_autoptr (GError) error = NULL;
const gchar *arg;
g_debug ("Registering application");
@ -198,8 +198,8 @@ check_dial_number (const gchar *number)
static gchar *
extract_dial_string (const gchar *number)
{
g_autoptr(GError) error = NULL;
g_autoptr(GRegex) replace_visual;
g_autoptr (GError) error = NULL;
g_autoptr (GRegex) replace_visual;
gchar *dial_string;
replace_visual = g_regex_new (VISUAL_RE, 0, 0, &error);
@ -298,8 +298,8 @@ static const GActionEntry actions[] =
static void
startup (GApplication *application)
{
g_autoptr(GtkCssProvider) provider = NULL;
g_autoptr(GError) error = NULL;
g_autoptr (GtkCssProvider) provider = NULL;
g_autoptr (GError) error = NULL;
G_APPLICATION_CLASS (calls_application_parent_class)->startup (application);

View file

@ -104,7 +104,7 @@ mute_toggled_cb (GtkToggleButton *togglebutton,
CallsCallDisplay *self)
{
gboolean want_mute, ret;
g_autoptr(GError) error = NULL;
g_autoptr (GError) error = NULL;
want_mute = gtk_toggle_button_get_active (togglebutton);
ret = call_audio_mute_mic (want_mute, &error);
@ -121,7 +121,7 @@ speaker_toggled_cb (GtkToggleButton *togglebutton,
CallsCallDisplay *self)
{
gboolean want_speaker, ret;
g_autoptr(GError) error = NULL;
g_autoptr (GError) error = NULL;
want_speaker = gtk_toggle_button_get_active (togglebutton);
ret = call_audio_enable_speaker (want_speaker, &error);

View file

@ -214,7 +214,7 @@ window_ussd_respond_cb (GObject *object,
{
CallsMainWindow *self = user_data;
g_autofree char *response = NULL;
g_autoptr(GError) error = NULL;
g_autoptr (GError) error = NULL;
CallsUssd *ussd;
ussd = g_object_get_data (G_OBJECT (self->ussd_dialog), "ussd");
@ -261,7 +261,7 @@ main_window_ussd_send_cb (GObject *object,
{
CallsMainWindow *self = user_data;
g_autofree char *response = NULL;
g_autoptr(GError) error = NULL;
g_autoptr (GError) error = NULL;
CallsUssd *ussd;
response = calls_new_call_box_send_ussd_finish (self->new_call, result, &error);

View file

@ -98,7 +98,7 @@ ussd_send_cb (GObject *object,
{
CallsNewCallBox *self;
CallsUssd *ussd = (CallsUssd *)object;
g_autoptr(GTask) task = user_data;
g_autoptr (GTask) task = user_data;
GError *error = NULL;
char *response;
@ -364,8 +364,8 @@ calls_new_call_box_send_ussd_async (CallsNewCallBox *self,
GAsyncReadyCallback callback,
gpointer user_data)
{
g_autoptr(CallsOrigin) origin = NULL;
g_autoptr(GTask) task = NULL;
g_autoptr (CallsOrigin) origin = NULL;
g_autoptr (GTask) task = NULL;
GtkEntry *entry;
g_return_if_fail (CALLS_IS_NEW_CALL_BOX (self));

View file

@ -43,7 +43,7 @@ static void
notify (CallsNotifier *self, CallsCall *call)
{
GApplication *app = g_application_get_default ();
g_autoptr(GNotification) notification;
g_autoptr (GNotification) notification;
g_autoptr (CallsBestMatch) contact = NULL;
g_autofree gchar *msg = NULL;
g_autofree gchar *ref = NULL;
@ -95,7 +95,7 @@ state_changed_cb (CallsNotifier *self,
n = g_list_model_get_n_items (G_LIST_MODEL (self->unanswered));
for (int i = 0; i < n; i++)
{
g_autoptr(CallsCall) item = g_list_model_get_item (G_LIST_MODEL (self->unanswered), i);
g_autoptr (CallsCall) item = g_list_model_get_item (G_LIST_MODEL (self->unanswered), i);
if (item == call)
{
g_list_store_remove (self->unanswered, i);

View file

@ -119,7 +119,7 @@ calls_origin_foreach_call(CallsOrigin *self,
CallsOriginForeachCallFunc callback,
gpointer param)
{
g_autoptr(GList) calls = NULL;
g_autoptr (GList) calls = NULL;
GList *node;
calls = calls_origin_get_calls (self);

View file

@ -223,7 +223,7 @@ call_removed_cb (CallsRinger *self, CallsCall *call)
static void
calls_ringer_init (CallsRinger *self)
{
g_autoptr(GError) err = NULL;
g_autoptr (GError) err = NULL;
if (lfb_init (APP_ID, &err))
{