mirror of
https://github.com/labwc/labwc.git
synced 2026-02-11 04:27:51 -05:00
view: store title/app_id in view
This simplifies our codes and eliminates duplicated
`view.events.new_{title,app_id}` events. This should not change any
behaviors.
This commit is contained in:
parent
27cc738985
commit
babd7af8f8
13 changed files with 87 additions and 155 deletions
|
|
@ -281,7 +281,7 @@ handle_view_new_app_id(struct wl_listener *listener, void *data)
|
|||
struct scaled_icon_buffer *self =
|
||||
wl_container_of(listener, self, on_view.new_app_id);
|
||||
|
||||
const char *app_id = view_get_string_prop(self->view, "app_id");
|
||||
const char *app_id = self->view->app_id;
|
||||
if (str_equal(app_id, self->view_app_id)) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue