mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
string-helpers.c: add string_empty()
This commit is contained in:
parent
8c9be2f0d1
commit
c066821046
9 changed files with 27 additions and 14 deletions
|
|
@ -7,6 +7,7 @@
|
|||
#include "common/mem.h"
|
||||
#include "common/scaled_font_buffer.h"
|
||||
#include "common/scene-helpers.h"
|
||||
#include "common/string-helpers.h"
|
||||
#include "labwc.h"
|
||||
#include "node.h"
|
||||
#include "ssd-internal.h"
|
||||
|
|
@ -325,7 +326,7 @@ ssd_update_title(struct ssd *ssd)
|
|||
|
||||
struct view *view = ssd->view;
|
||||
char *title = (char *)view_get_string_prop(view, "title");
|
||||
if (!title || !*title) {
|
||||
if (string_null_or_empty(title)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue