Skip to content
  • Vincent Untz's avatar
    Make the window action menu work when more things change. · f9765f49
    Vincent Untz authored
    2007-07-08  Vincent Untz  <vuntz@gnome.org>
    
    	Make the window action menu work when more things change.
    
    	* libwnck/window-action-menu.c: (update_menu_state): hide/show
    	left/right/up/down items, refill the workspace submenu when needed,
    	hide the unpin item and popdown the workspace submenu when there is
    	only one workspace
    	(workspace_changed_callback): new, update the menu when the window is
    	on another workspace
    	(screen_workspace_callback): new, update the menu when a workspace is
    	created/destroyed
    	(refill_submenu): new, from code from wnck_create_window_action_menu()
    	(wnck_create_window_action_menu): always create left/right/up/down
    	items, don't create the workspace submenu here, connect to
    	workspace_changed, workspace_created and workspace_destroyed
    
    svn path=/trunk/; revision=1399
    f9765f49