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:
parent
0452d8a2bf
commit
ea5d7038e7
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue