mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-12-13 16:07:36 +00:00
record-row: Use STR_IS_NULL_OR_EMPTY macro
This commit is contained in:
parent
8e23d77508
commit
0d6095b42a
1 changed files with 2 additions and 2 deletions
|
@ -334,7 +334,7 @@ setup_contact (CallsCallRecordRow *self)
|
|||
"target", &target,
|
||||
NULL);
|
||||
|
||||
if (!target || target[0] == '\0') {
|
||||
if (STR_IS_NULL_OR_EMPTY (target)) {
|
||||
gtk_actionable_set_action_name (GTK_ACTIONABLE (self->button), NULL);
|
||||
g_simple_action_set_enabled (G_SIMPLE_ACTION (action_copy), FALSE);
|
||||
} else {
|
||||
|
@ -467,7 +467,7 @@ constructed (GObject *object)
|
|||
gtk_actionable_set_action_name (GTK_ACTIONABLE (self->button), action_name);
|
||||
|
||||
/* TODO add origin ID to action target */
|
||||
if (target && *target)
|
||||
if (!STR_IS_NULL_OR_EMPTY (target))
|
||||
gtk_actionable_set_action_target (GTK_ACTIONABLE (self->button),
|
||||
"(ss)", target, "");
|
||||
|
||||
|
|
Loading…
Reference in a new issue