mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-11-04 15:41:19 +00:00
code style: consistent whitespaces for g_autoptr
This commit is contained in:
parent
5375ebbc72
commit
5d4b84470c
7 changed files with 16 additions and 16 deletions
|
@ -75,7 +75,7 @@ handle_local_options (GApplication *application,
|
||||||
GVariantDict *options)
|
GVariantDict *options)
|
||||||
{
|
{
|
||||||
gboolean ok;
|
gboolean ok;
|
||||||
g_autoptr(GError) error = NULL;
|
g_autoptr (GError) error = NULL;
|
||||||
const gchar *arg;
|
const gchar *arg;
|
||||||
|
|
||||||
g_debug ("Registering application");
|
g_debug ("Registering application");
|
||||||
|
@ -198,8 +198,8 @@ check_dial_number (const gchar *number)
|
||||||
static gchar *
|
static gchar *
|
||||||
extract_dial_string (const gchar *number)
|
extract_dial_string (const gchar *number)
|
||||||
{
|
{
|
||||||
g_autoptr(GError) error = NULL;
|
g_autoptr (GError) error = NULL;
|
||||||
g_autoptr(GRegex) replace_visual;
|
g_autoptr (GRegex) replace_visual;
|
||||||
gchar *dial_string;
|
gchar *dial_string;
|
||||||
|
|
||||||
replace_visual = g_regex_new (VISUAL_RE, 0, 0, &error);
|
replace_visual = g_regex_new (VISUAL_RE, 0, 0, &error);
|
||||||
|
@ -298,8 +298,8 @@ static const GActionEntry actions[] =
|
||||||
static void
|
static void
|
||||||
startup (GApplication *application)
|
startup (GApplication *application)
|
||||||
{
|
{
|
||||||
g_autoptr(GtkCssProvider) provider = NULL;
|
g_autoptr (GtkCssProvider) provider = NULL;
|
||||||
g_autoptr(GError) error = NULL;
|
g_autoptr (GError) error = NULL;
|
||||||
|
|
||||||
G_APPLICATION_CLASS (calls_application_parent_class)->startup (application);
|
G_APPLICATION_CLASS (calls_application_parent_class)->startup (application);
|
||||||
|
|
||||||
|
|
|
@ -104,7 +104,7 @@ mute_toggled_cb (GtkToggleButton *togglebutton,
|
||||||
CallsCallDisplay *self)
|
CallsCallDisplay *self)
|
||||||
{
|
{
|
||||||
gboolean want_mute, ret;
|
gboolean want_mute, ret;
|
||||||
g_autoptr(GError) error = NULL;
|
g_autoptr (GError) error = NULL;
|
||||||
|
|
||||||
want_mute = gtk_toggle_button_get_active (togglebutton);
|
want_mute = gtk_toggle_button_get_active (togglebutton);
|
||||||
ret = call_audio_mute_mic (want_mute, &error);
|
ret = call_audio_mute_mic (want_mute, &error);
|
||||||
|
@ -121,7 +121,7 @@ speaker_toggled_cb (GtkToggleButton *togglebutton,
|
||||||
CallsCallDisplay *self)
|
CallsCallDisplay *self)
|
||||||
{
|
{
|
||||||
gboolean want_speaker, ret;
|
gboolean want_speaker, ret;
|
||||||
g_autoptr(GError) error = NULL;
|
g_autoptr (GError) error = NULL;
|
||||||
|
|
||||||
want_speaker = gtk_toggle_button_get_active (togglebutton);
|
want_speaker = gtk_toggle_button_get_active (togglebutton);
|
||||||
ret = call_audio_enable_speaker (want_speaker, &error);
|
ret = call_audio_enable_speaker (want_speaker, &error);
|
||||||
|
|
|
@ -214,7 +214,7 @@ window_ussd_respond_cb (GObject *object,
|
||||||
{
|
{
|
||||||
CallsMainWindow *self = user_data;
|
CallsMainWindow *self = user_data;
|
||||||
g_autofree char *response = NULL;
|
g_autofree char *response = NULL;
|
||||||
g_autoptr(GError) error = NULL;
|
g_autoptr (GError) error = NULL;
|
||||||
CallsUssd *ussd;
|
CallsUssd *ussd;
|
||||||
|
|
||||||
ussd = g_object_get_data (G_OBJECT (self->ussd_dialog), "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;
|
CallsMainWindow *self = user_data;
|
||||||
g_autofree char *response = NULL;
|
g_autofree char *response = NULL;
|
||||||
g_autoptr(GError) error = NULL;
|
g_autoptr (GError) error = NULL;
|
||||||
CallsUssd *ussd;
|
CallsUssd *ussd;
|
||||||
|
|
||||||
response = calls_new_call_box_send_ussd_finish (self->new_call, result, &error);
|
response = calls_new_call_box_send_ussd_finish (self->new_call, result, &error);
|
||||||
|
|
|
@ -98,7 +98,7 @@ ussd_send_cb (GObject *object,
|
||||||
{
|
{
|
||||||
CallsNewCallBox *self;
|
CallsNewCallBox *self;
|
||||||
CallsUssd *ussd = (CallsUssd *)object;
|
CallsUssd *ussd = (CallsUssd *)object;
|
||||||
g_autoptr(GTask) task = user_data;
|
g_autoptr (GTask) task = user_data;
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
char *response;
|
char *response;
|
||||||
|
|
||||||
|
@ -364,8 +364,8 @@ calls_new_call_box_send_ussd_async (CallsNewCallBox *self,
|
||||||
GAsyncReadyCallback callback,
|
GAsyncReadyCallback callback,
|
||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
g_autoptr(CallsOrigin) origin = NULL;
|
g_autoptr (CallsOrigin) origin = NULL;
|
||||||
g_autoptr(GTask) task = NULL;
|
g_autoptr (GTask) task = NULL;
|
||||||
GtkEntry *entry;
|
GtkEntry *entry;
|
||||||
|
|
||||||
g_return_if_fail (CALLS_IS_NEW_CALL_BOX (self));
|
g_return_if_fail (CALLS_IS_NEW_CALL_BOX (self));
|
||||||
|
|
|
@ -43,7 +43,7 @@ static void
|
||||||
notify (CallsNotifier *self, CallsCall *call)
|
notify (CallsNotifier *self, CallsCall *call)
|
||||||
{
|
{
|
||||||
GApplication *app = g_application_get_default ();
|
GApplication *app = g_application_get_default ();
|
||||||
g_autoptr(GNotification) notification;
|
g_autoptr (GNotification) notification;
|
||||||
g_autoptr (CallsBestMatch) contact = NULL;
|
g_autoptr (CallsBestMatch) contact = NULL;
|
||||||
g_autofree gchar *msg = NULL;
|
g_autofree gchar *msg = NULL;
|
||||||
g_autofree gchar *ref = 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));
|
n = g_list_model_get_n_items (G_LIST_MODEL (self->unanswered));
|
||||||
for (int i = 0; i < n; i++)
|
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)
|
if (item == call)
|
||||||
{
|
{
|
||||||
g_list_store_remove (self->unanswered, i);
|
g_list_store_remove (self->unanswered, i);
|
||||||
|
|
|
@ -119,7 +119,7 @@ calls_origin_foreach_call(CallsOrigin *self,
|
||||||
CallsOriginForeachCallFunc callback,
|
CallsOriginForeachCallFunc callback,
|
||||||
gpointer param)
|
gpointer param)
|
||||||
{
|
{
|
||||||
g_autoptr(GList) calls = NULL;
|
g_autoptr (GList) calls = NULL;
|
||||||
GList *node;
|
GList *node;
|
||||||
|
|
||||||
calls = calls_origin_get_calls (self);
|
calls = calls_origin_get_calls (self);
|
||||||
|
|
|
@ -223,7 +223,7 @@ call_removed_cb (CallsRinger *self, CallsCall *call)
|
||||||
static void
|
static void
|
||||||
calls_ringer_init (CallsRinger *self)
|
calls_ringer_init (CallsRinger *self)
|
||||||
{
|
{
|
||||||
g_autoptr(GError) err = NULL;
|
g_autoptr (GError) err = NULL;
|
||||||
|
|
||||||
if (lfb_init (APP_ID, &err))
|
if (lfb_init (APP_ID, &err))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue