1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-11-15 12:55:36 +00:00

new-call-box: Use STR_IS_NULL_OR_EMPTY macro

This commit is contained in:
Evangelos Ribeiro Tzaras 2023-03-16 13:10:46 +01:00
parent 0452d8a2bf
commit ea5d7038e7

View file

@ -127,7 +127,7 @@ address_activate_cb (CallsNewCallBox *self)
CallsOrigin *origin = get_selected_origin (self); CallsOrigin *origin = get_selected_origin (self);
const char *address = gtk_entry_get_text (self->address_entry); const char *address = gtk_entry_get_text (self->address_entry);
if (origin && address && *address != '\0') if (origin && !STR_IS_NULL_OR_EMPTY (address))
calls_origin_dial (origin, address); calls_origin_dial (origin, address);
} }
@ -138,7 +138,7 @@ address_changed_cb (CallsNewCallBox *self)
const char *address = gtk_entry_get_text (self->address_entry); const char *address = gtk_entry_get_text (self->address_entry);
gtk_widget_set_visible (GTK_WIDGET (self->result), gtk_widget_set_visible (GTK_WIDGET (self->result),
address && *address != '\0'); !STR_IS_NULL_OR_EMPTY (address));
} }