mirror of
https://github.com/labwc/labwc.git
synced 2026-02-25 01:40:28 -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
11
src/view.c
11
src/view.c
|
|
@ -2352,12 +2352,7 @@ void
|
|||
view_update_title(struct view *view)
|
||||
{
|
||||
assert(view);
|
||||
const char *title = view_get_string_prop(view, "title");
|
||||
if (!title) {
|
||||
return;
|
||||
}
|
||||
ssd_update_title(view->ssd);
|
||||
|
||||
wl_signal_emit_mutable(&view->events.new_title, NULL);
|
||||
}
|
||||
|
||||
|
|
@ -2365,15 +2360,9 @@ void
|
|||
view_update_app_id(struct view *view)
|
||||
{
|
||||
assert(view);
|
||||
const char *app_id = view_get_string_prop(view, "app_id");
|
||||
if (!app_id) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (view->ssd_enabled) {
|
||||
ssd_update_window_icon(view->ssd);
|
||||
}
|
||||
|
||||
wl_signal_emit_mutable(&view->events.new_app_id, NULL);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue