mirror of
https://github.com/labwc/labwc.git
synced 2025-11-30 06:59:52 -05:00
Privatize view_contains_window_type()
This commit is contained in:
parent
2ea0f6fff4
commit
eb41c6a3b0
2 changed files with 10 additions and 11 deletions
20
src/view.c
20
src/view.c
|
|
@ -120,6 +120,16 @@ query_str_match(const char *condition, const char *value)
|
|||
return value && match_glob(condition, value);
|
||||
}
|
||||
|
||||
static bool
|
||||
view_contains_window_type(struct view *view, enum lab_window_type window_type)
|
||||
{
|
||||
assert(view);
|
||||
if (view->impl->contains_window_type) {
|
||||
return view->impl->contains_window_type(view, window_type);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool
|
||||
view_matches_query(struct view *view, struct view_query *query)
|
||||
{
|
||||
|
|
@ -403,16 +413,6 @@ view_wants_focus(struct view *view)
|
|||
return VIEW_WANTS_FOCUS_ALWAYS;
|
||||
}
|
||||
|
||||
bool
|
||||
view_contains_window_type(struct view *view, enum lab_window_type window_type)
|
||||
{
|
||||
assert(view);
|
||||
if (view->impl->contains_window_type) {
|
||||
return view->impl->contains_window_type(view, window_type);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool
|
||||
view_is_focusable(struct view *view)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue