mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
project wide: adapt to new non-NULL value of view_get_string_prop()
This commit is contained in:
parent
023427b4f4
commit
c772224a54
4 changed files with 11 additions and 13 deletions
|
|
@ -3,6 +3,7 @@
|
|||
#include <wlr/types/wlr_scene.h>
|
||||
#include "common/graphic-helpers.h"
|
||||
#include "common/scene-helpers.h"
|
||||
#include "common/string-helpers.h"
|
||||
#include "debug.h"
|
||||
#include "input/ime.h"
|
||||
#include "labwc.h"
|
||||
|
|
@ -69,7 +70,7 @@ get_view_part(struct view *view, struct wlr_scene_node *node)
|
|||
}
|
||||
if (node == &view->scene_tree->node) {
|
||||
const char *app_id = view_get_string_prop(view, "app_id");
|
||||
if (!app_id) {
|
||||
if (!string_null_or_empty(app_id)) {
|
||||
return "view";
|
||||
}
|
||||
snprintf(view_name, sizeof(view_name), "view (%s)", app_id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue