Set a special window property for windows with menus
authorClaudio Saavedra <csaavedra@igalia.com>
Tue, 8 Sep 2009 15:42:30 +0000 (18:42 +0300)
committerClaudio Saavedra <csaavedra@igalia.com>
Fri, 11 Sep 2009 13:04:43 +0000 (16:04 +0300)
commit5df32cfef33e538e774eda1912d613e2fec0e155
tree3e6342218bbb49d7575a0426004ef63f893fe4b3
parent18e833d726109484d4165bf9eb11a85df919cb0d
Set a special window property for windows with menus

* hildon/hildon-window-private.h: Add private
hildon_window_set_menu_flag()
* hildon/hildon-window.c: (+do_set_has_menu),
(+hildon_window_set_menu_flag): set
"_HILDON_WM_WINDOW_MENU_INDICATOR" to 1 in the window
or remove the property.
(hildon_window_set_main_menu),
(hildon_window_set_app_menu): call above methods to set or remove
the property when a menu is added or removed from the window.

Partially fixes: NB#137814 (Indicator for view menu in app title area)
ChangeLog
hildon/hildon-window-private.h
hildon/hildon-window.c