1
0
Fork 0

window: Add an accessor for whether the window can close

The shell will use this to determine whether to show a close
button in the overview.

https://bugzilla.gnome.org/show_bug.cgi?id=699269
This commit is contained in:
Jasper St. Pierre 2013-04-26 11:33:11 -04:00
parent f5e75de330
commit 50b9042ac2
2 changed files with 8 additions and 0 deletions

View file

@ -11218,3 +11218,9 @@ meta_window_compute_tile_match (MetaWindow *window)
window->tile_match = match;
}
}
gboolean
meta_window_can_close (MetaWindow *window)
{
return window->has_close_func;
}

View file

@ -237,4 +237,6 @@ void meta_window_begin_grab_op (MetaWindow *window,
gboolean frame_action,
guint32 timestamp);
gboolean meta_window_can_close (MetaWindow *window);
#endif